SLEEP FUNCTION NOT WORKING WHY?

 
I have a code like this: if(pos_dv==true){Sleep(300000);Experts=1;GlobalVariableSet(Quantity1, Experts);} ;my intention with this code is that the expertt should wait for 60minute before assigning 1 to expert and setting globalvariableset(Quantity1,Experts;);, but the next operation is performed without waiting for the sleeping time duration.Anything wrong or what can i do.
 

Are you running this is the strategy tester?

Strategy tester ignores Sleep(), along with some other functions.


CB

 
cloudbreaker wrote >>

Are you running this is the strategy tester?

Strategy tester ignores Sleep(), along with some other functions.

CB

YES

 
1981 wrote >>

YES

DOES IT MEANS IT WILL WORK IN REAL TIME TRADE

 

Yes.


CB

Reason: