Hi
I'm using Strategy Builder to create a strategy that I'm running on Renko charts and am using playback for testing. I am entering using market orders, which appears to work fine. However, I keep intermittently getting the error about order being rejected because stop or limit orders can't be placed below the market, when my stop loss or profit target are hit and can't seem to find a way to handle these neatly to prevent them from happening.
When using a profit target (ticks), I get errors like
The OCO ID ‘477586e8473f4c099a8898e5578b0e76’ cannot be reused. Please use a new OCO ID. affected Order: BuyToCover 1 Limit @ 20382.25,
Order rejected' Native error='Buy stop or buy stop limit orders can't be placed below the market.
or with a stop loss
Order,Playback101 Sell stop or sell stop limit orders can't be placed above the market. affected Order: Sell 1 StopMarket @ 20338,
Order='94c1d518d2c343e5a3ed33c245d4 88fa/Playback101' Name='Stop loss' New state='Rejected' Instrument='MNQ SEP24' Action='Sell' Limit price=0 Stop price=20338 Quantity=1 Type='Stop Market' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='Order rejected' Native error='Sell stop or sell stop limit orders can't be placed above the market.',
Order='94c1d518d2c343e5a3ed33c245d4 88fa/Playback101' Name='Stop loss' New state='Submitted' Instrument='MNQ SEP24' Action='Sell' Limit price=0 Stop price=20338 Quantity=1 Type='Stop Market' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
I'm running the strategy with high order resolution, set to Tick. Is there anything else I should be doing, to prevent this error from occurring?
Thanks
Dan

Comment