The code complies fine, and I have verified that I can add multiple elements and recall their values at runtime, no problem. However, once I have processed an OrderId pair I want to remove it from the list using RemoveAt( idx) so I don't have to read it again, but when I do I get the following error:
"Error on calling 'OnBarUpdate' method for strategy 'mystrategy'. Collection was modified; enumeration operation may not execute."
and the strategy code stops working. I would appreciate it to learn if Support or other advanced users have used Generics and might know whether there are special considerations for removing elements from a generic list within Ninja? Thanks.
Regards,
Whitmark
Comment