Download MetaTrader 5

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

To add comments, please log in or register
zedzed1
667
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 

Francis Dogbe
9498
Francis Dogbe  
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. 
Mohammad Soubra
27393
Mohammad Soubra  

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); 
  }
To add comments, please log in or register