In my strategy if there is a EnterLongLimit(...) order waiting to trigger and if I get a short signal, it won't cancel the EnterLongLimit(...) order and place EnterShortLimit(...) order. I was wondering if I could write in CancelOrder() one line above EnterLongLimit and EnterShortLimit to cancel any orders?
Thanks

Comment