The loop iterates through running ATM Strategy IDs and associated properties I have stored within the list.
At the termination of the ATM Strategy:
GetAtmStrategyMarketPosition(listRecord.AtmStrategyId) == Cbi.MarketPosition.Flat)
I note there is a separate related error that can be raised, Collection was modified after the enumerator was instantiated, as per this thread: https://ninjatrader.com/support/foru...s-instantiated
Couple of questions:
1) What is causing the error in my case? This error is being raised when there is 1 record in the list...
2) What other considerations should I be thinking about as it relates to running loops from within OnBarUpdate()?
Thanks
Comment