Download MetaTrader 5
To add comments, please log in or register
Interessiert am Partnerprogramm MQL5.community? Veröffentliche Links und verdiene Geld damit!
flexea
120
flexea 2016.09.27 23:36 

I have this code before my ordersend, but yet orders are opened immediately. Shouldn't this loop be locking the EA up for 5 seconds?


int seconds = (int)TimeCurrent();
while((int)TimeCurrent()-5 < seconds)
{Sleep(1000);RefreshRates();}
whroeder1
13644
whroeder1 2016.09.28 01:02  
Print out your variables, and find out why.
/
To add comments, please log in or register