At the beginning and end of my session I would like to close out any lingering positions and orders.
To exit a position:
1. I have found MarketPosition which tells me whether the position is long or short
2. I can use ExitLong() or ExitShort() accordingly (and no I'm not using SetProfitTarget or SetStopLoss)
For orders it's murkier, there is no method to get all active orders.
How would I go about canceling all active orders?
I see Account.CancelAllOrders() is that accessible from the Strategy class/namespace?
Many Thanks, Caesar.

Comment