Download MetaTrader 5

Setting Profit Target.

To add comments, please log in or register
Publish your article and thousands of people all over the world will read it!
ForexTrader17
1041
ForexTrader17 2016.07.11 22:49 

When I try to set a profit Target using the high and low of bars 2 and 3 the EA does not apply it. Is there something wrong with the code? I am basically trying to subtract from the opening price the difference in pips between the high and low.

 TP = (0 * myPoint) - (MathAbs(High[3] - Low[2]))

Thank you. 

Osama Shaban
1446
Osama Shaban 2016.07.12 00:10  
As I see, the TP is in negative !!!.
ForexTrader17
1041
ForexTrader17 2016.07.12 02:55  

So put a "+" in there? I thought for shorts we need to subtract.

Thanks. 

To add comments, please log in or register