Setting Profit Target.

To add comments, please log in or register
ForexTrader17
1031
ForexTrader17  

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
1544
Osama Shaban  
As I see, the TP is in negative !!!.
ForexTrader17
1031
ForexTrader17  

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

Thanks. 

To add comments, please log in or register