how to detect when EA is started?

 

hello everybody,

i'd like to detect when the user clicks the "Expert Advisors" button in the MT4 terminal, the Init() funtion only triggers when i attach and advisor to a chart, but i want a certain code to be executed every time the EA is activated using the button mentioned above.

i.e. everytime user clicks this button and it goes from the "stop" mode to the "play" mode, a certain code is executed.

Thanks

Reason: