I have a strategy, I am using the following command: EnterShortStopLimit(1, (Low[0] - TickSize), "ShortE"), I am running onBarClose using Renko bars
and during test with market replay I get the following errors:
Sell stop or sell stop limit orders cant be places above the market affected order.
...Strategy submitted error 'Order rejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.
These errors crash the strategy.
What should I do ? How to make sure that these kind of errors will not crash my strategy ?
Thanks
Comment