was ist in dem Fall die richtige Schreibweise,
void OnInit(void) oder
void OnInit() ?
vielleicht sollte mann hier zusätzlich OnDeinit() verwenden, denn hier
https://docs.mql4.com/basis/function/events
heißt es:
The Deinit event is generated for Expert Advisors and indicators in the following cases:
-before reinitialization due to the change of a symbol or chart period, to which the mql4 program is attached;
-before reinitialization due to the change of input parameters;
-before unloading the mql4 program.
Das muss mit
Uninitialization Reason Codes verwendet werden.
Kennt sich jemand damit aus ?