What I want to do is develop the code that closes all atm strategies that were not filled on the last bar. The problem that I am having is that I do not know what the strategyID is since it was created on the last bar.
Is there a way to get all past strategyIDs that are still active as in either have a current order in or a market position?

Comment