I have some strategies that don't perform as well as backtest results due to higher than expected hit-but-no-fill when the target is hit. Often times the target isn't hit again and they get stopped out. I want to explore converting the target limit order immediately to a market order when this happens, with the understanding that there might be some slippage, in the hope that I might mitigate some of this and still come out ahead. Do you have any suggestion or sample code on how to do this? Is there a particular OrderState or combination that would reveal this? My code is unmanaged and implemented in OnExecuteOrder and is quite robust and fleshed out.
Thanks,
silverm3170

Comment