in run(), I check if a GTC order is unfilled in a trade enumeration loop. If it is, I want to cancel it. I tried doing exitTrade(ThisTrade) but I've noticed that Zorro then tries to "close" this position by sending another order with Amount = 0 through BrokerBuy2 (NFA), when in reality it should simply cancel the order and not place another one. DO_CANCEL is implemented for that purpose but not called here.

Is there a correct way of canceling GTC orders that are completey unfilled thus far? (without using OrderDuration)