EA stop modification every miliscond

 

can some one tell me how can to stop modification evry miliscond

for exemple if  i open trade ..  EA should stop to modify trade every miliscond

what function i should use it??

 
ALI AMRIOUI: can some one tell me how can to stop modification evry miliscond. for exemple if  i open trade ..  EA should stop to modify trade every miliscond. what function i should use it??
Check the current time! Only modify after a certain amount of time has elapsed.
 
Fernando Carreiro #:
Check the current time! Only modify after a certain amount of time has elapsed.

thanks friend ..i will try it 

 
Fernando Carreiro #:
Check the current time! Only modify after a certain amount of time has elapsed.
int start()
{

if (TimeCurrent()> LastOrderInfo("Time",OP_BUYSTOP)&&TimeCurrent() <  LastOrderInfo("Time",OP_BUYSTOP)+9 )// 9 means 9 Seconds



Sleep(1000);//1000 means 1 Seconds
return true;


}

why Didnot this code is correct ??

 
ALI AMRIOUI #: why Didnot this code is correct ??

What if there are no ticks during a specific candle period? There can be minutes between ticks during the Asian session, think M1 chart.

 
William Roeder #:

What if there are no ticks during a specific candle period? There can be minutes between ticks during the Asian session, think M1 chart.

thanks friend