How to make Take profit equal to Stop Loss
3 replies
Julianrob
10 years ago #115311
Hi,
I built an EA that will open a position on a given set of circumstances for MacD and stochastics.
On buy trades the stop loss is set at previous bar low minus 3 pips.
I would like to make the take profit an equal number of pips to the stoploss. How do I do this?
I’ve tried this in pips in range section:
SL = orderopenprice + ConvertToRealPips(openprice + (openprice – SL))
It doesn’t work. Also tried it as a price level. Please assist, thanks.
Julian
0
Julianrob
10 years ago #138140
I’ve tried using:
Stop loss set as a pips range:
Pricedifference ( Openprice, SL)
Still no success.
0
Tomas Matejka
10 years ago #138166
Hello,
will make an example for you and post here
0
Tomas Matejka
10 years ago #138188
Hi, you can calculate the difference between close price and previous bar low price and convert it to pips. Then you can set this value as the SL and PT offset
0
Viewing 3 replies - 1 through 3 (of 3 total)