Unhandled exception: "AtmStrategyCreate" method can only be called in state "Realtime".
I've tried it on market replay as well as with a live account with the same results. Code is attached as well. I'm not sure I understand what is going on here and how to solve the issue.
Code is here:
Test.cs
Comment