I have a fairly complex strategy which uses managed orders. I get occasional overfills in live operation, which are always as a result of my strat calling CancelOrder as the exchange is filling it.
My problems are twofold. Firstly, the default behaviour is supposed to be stop the strat and attempt to close the position, right? Well, the close is not attempted, meaning the default behaviour is to leave a position on, with no stop (because the strat stops before putting the stop on) and no strat running to handle it. In my opinion that is very dangerous default behaviour.
I'd be happy to code my own overfill handling, but that means I have to convert my whole strategy to unmanaged, right? Which is a lot of work. And even if I do that, could you please point me at an example of custom overfill handling, since I see nothing in the docs about how to do it.
thanks
Dave

Comment