here are a way to disble AutoTrading via MQL4 Code ?

 

Hi...

There are a way to disble AutoTrading  via MQL4 Code ?

I am using a third party EA thats good, but not with strong news.... then i think on improve trade blocking on news, doing it on an indicator and put in the same graphic... then the the indicator stop/restarts AutoTrading.

 
  1. If you could, what would you do if the EA had an order open?
  2. Can I code in MQL to turn on and off an already running EA? - MQL4 forum
  3. #define's for known commands that can be used for PostMessageA() - MQL4 forum lists
    #define MT4_WMCMD_EXPERTS         33020
Both are pre-build 600 so they may or may not still work.
 
WHRoeder:
  1. If you could, what would you do if the EA had an order open?
  2. Can I code in MQL to turn on and off an already running EA? - MQL4 forum
  3. #define's for known commands that can be used for PostMessageA() - MQL4 forum lists
    #define MT4_WMCMD_EXPERTS         33020
Both are pre-build 600 so they may or may not still work.

Great WHRoeder... works here.. with the option #2...

About opened orders... well.. better stop on news with one opened order than allow opening 10 lost orders  

Reason: