is there a script that disable and enable autotrading before and after news mt4?

 

Hello,

 

Is there a script that automaticly can disable autotrading before 15M and enable after 15M ? And you can also setup high, medium, low impact? 

 

Thank you 

 
zedzed1:

Hello,

 

Is there a script that automaticly can disable autotrading before 15M and enable after 15M ? And you can also setup high, medium, low impact? 

 

Thank you 

The best thing to do is to modify your EA to perform that feature instead. 
 

Use

Sleep(15*60*1000);

while:

15 your asked 15 minutes

60 (1 minute)

1000 (1 second)

--- 

then it should be like:

Sleep(900000);

or

//+------------------------------------------------------------------+ 
//| Script program start function                                    | 
//+------------------------------------------------------------------+ 
int start() 
  { 
   int minutes=15; 

      Sleep(minutes*60*1000); 
//--- 
   return(0); 
  }
Reason: