Error Modify error 130 have checked all things possible - page 2 12 New comment Alain Verleyen 2016.11.17 08:13 #11 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 book.mql4.com Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial [WARNING CLOSED!] Any newbie Questions from Beginners MQL5 [ARCHIVE] Any rookie question, Mary Clark 2016.11.18 03:07 #12 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. 12 New comment
...
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.
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.