You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
...
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.