For real-time, I overrode the default error handler, and then submit it as a market order.
However, this code does not fire in backtesting...so I implemented a basic check of:
if (price == stop price) then market order entry, else stop order entry.
That seems to work, but my question really is how to best code so that the same code will be used for both real time and backtesting?
Is that possible, or is my solution above the recommended method?
And, will NT7 simply have a built in option to handle rejected stops so that they can be resubmitted as market orders or should I just add the default override of the error handler for all my systems?
I am porting from TS because I am tired of their inability to handle rejected stops btw...so this is quite a key issue for me.
Thanks
Comment