During the State.Historical I'm collecting data and storing it in a C# List.
I want to access and process this list in either OnStateChange State.Transion or State.Realtime
But the list apparently is not available there...perhaps it is a different thread?
I can see this because List.Count returns 0 in OnStateChange, even though it is not empty (has been filled by State.Historical OnBarUpdate)
As soon as the first State.Realtime OnBarUpdate is entered, THEN the List.Count is correct.
Seems to be a thread issue?
Thanks
Comment