I try to catch the event of disabling my strategy (similar to OnTermination at NT7). To my understanding the equivalent is the OnStateChange event when State == State.Terminated.
However this event is fired even if my strategy was not even enabled in the first place, which causes errors on my strategy to be printed to the output window.
How can I catch the event when the strategy is disabled only?
Thanks
Comment