Download MetaTrader 5

Why doesn't this delay trading for 5 seconds?

To add comments, please log in or register
Why to sell products in MetaTrader AppStore? Find that out from the article!
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
14461
whroeder1 2016.09.28 01:02  
Print out your variables, and find out why.
To add comments, please log in or register