Download MetaTrader 5
To add comments, please log in or register
Order a robot or an indicator for MetaTrader. The Freelance service will help you!
zedzed1
667
zedzed1 2016.03.10 12:26 

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
9467
Francis Dogbe 2016.03.10 22:06  
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
23376
Mohammad Soubra 2016.03.11 00:40  

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