How can I cancel any remaining open orders after a profit target has been hit, or a position has been closed?
I was thinking of using the CancelOrder(IOrder) method inside the OnPositionUpdate and check for Position.MarketPosition = MarketPosition.Flat ... Is this the proper way to go?
Comment