I am running into an issue where if there is some kind of NT message event (such as invalid instrument or invalid time frame, etc) then the OnTermination() function is NOT called, but Initialize() is called again. This is causing issues with my indicator since things are not correctly disposed within OnTermination, yet they are re-added during Initialize().
Does my situation make sense?
EDIT: Actually, I think it's OnStartUp() that is called again (rather than Initialize()) and OnTermination() is not.
Thanks!
Daniel
Comment