Download MetaTrader 5
To add comments, please log in or register
Read the interviews of the Automated Trading Championship participants
ForexTrader17
1011
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
1308
Osama Shaban 2016.07.12 00:10  
As I see, the TP is in negative !!!.
ForexTrader17
1011
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