After recoding strategies with the OnOrderUpdate and OnExecution I was woudering what I can do to solve the problem that has to do with the NT Handling Order rules.
I have a strategies that at times will send two orders one long and one short. For example EnterShortLimit 996.00, EnterLongLimit 990.00.
The problem is that if my short order is active the long order will be ignored because of the handling Order rules. That makes no sense to me !
After refactoring my strategies to manage my orders through OnOrderUpdate and OnExecution methods , is there a way I could cancel the farthest order from the market so that only the closer one would be send. Obviously I would have to reissue these orders on a bar basis.
Could someone help me on this issue with code example if possible
Thank you very much
Bernard
Comment