Thanks for your note.
PositionAccount.MarketPosition could be used to detect if an account's position is flat before placing an order in a strategy.
if (PositionAccount.MarketPosition == MarketPosition.Flat) { //do something here. }
Please let me know if I may assist further.
Leave a comment: