how can I stop the specific EA by magic number?

 

Is there any function in MQL4 to disable EA by Magic number? I want to create a code to disable some EAs by magic number at a specific time and a few hours later enable again.

Thansk,

 
Gustavo Lima: Is there any function
  1. No.
  2. You can possibly infer what MN from the EA's inputs, but you can't even know what MN an EA will use.
 

I had a script written once that put a "Pause" button on a chart so that I could turn on and off the EA placing trades for periods of time. (Manual off, manual or auto turn back on).  I also had it as part of a custom EA that had a whipsaw problem.

It had a time of XX bars for the trading to be off and then turn itself back on.  It worked every time.

I don't have that script anymore because my trading is different, but you can get someone in Freelancers to build it for you.