@ enjoyforex. Ok.. NOW I can see the problem.. lol.
Look at your journal, at the third line right after the ModifyOrder(): We see these values
HardSL=21.6 (the stop in pips)
HardTP=39.2 (the take profit in pips)
StopPrice=1.33492 (the stop in terms of EURUSD price)
TakePrice=1.33188 (the take profit in terms of EURUSD price)
Ok the Buy order was opened at 1.33426 (see 5th line of Journal) and ModifyOrder tried to set the StopPrice level at 1.33492...WRONG!! The StopPrice Level needs to be less than 1.34426, right? That's where the error is happening.
Let me look at what is generating the StopPrice number and make sure that it is generated correctly.
To give u an example. The StopPrice should actually be 21.6 pips below the open buy price of 1.33426 or it should be at 1.3321 (open - HardSL). Of course it's not.
At the least the EA will STOP when there are errors and close open order etc etc. KEWL
Ok, as a test set Use_ATR to false and give HardSL and HardTP whatever values u feel comfortable with.
You can try like the original..
Hard_SL=45.0 (original thread stoploss)
Hard_TP=90.0 (2:1)
Run it and just send me the journal if there is an error. If there is no error then that confirms that the problem is with the ATR calculation of the stop price level.
Just Hang on. 2.6 is coming UP.... Thnx sir,
J