EA OnDeinit -EA comes attached to chart even if chart closed
Please edit your post and use the code button (Alt+S) when posting code.
Check the Experts tab. You possibly have a critical error in the EA and the EA is stopped without OnDeinit being called.
Nothing wrong with your deinit except it can be simplified.
void OnDeinit(const int reason){ ObjectsDeleteAll(0, ObjPrefix); Comment(""); }
Hello MQ4 community, I am having a weird situation. I have EA that has OnDeinit function, that works sometimes but other times it does not. Is there like a "session save" type of situation here ? I mean code I have is pretty straightforward as below:
Simply, I would like to open a fresh chart without any objects on it, is there a better way ?
thanks in advance, cheers.