Error Modify error 130 have checked all things possible - page 2

 
Mary Clark:

...

The order for backtesting that gets opened is from a SELL_STOP, that shouldn't matter though.

Of course that matters.

You are really not clear. You said previously it's SELL, now you say it's a SELL_STOP, but your log show a SELL_LIMIT.

Anyway, you can't set a stoploss below the openprice of SELL_STOP or SELL_LIMIT. Why do you want to use a breakeven or trailing stop on a pending order ? That makes no sense.

Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
  • book.mql4.com
Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
 

Ok, I see the issue. I have an if OrderType() == OP_BUY but the else doesn't check for if OP_SELL

 

THANK YOU ! LOL. 

Reason: