Can experts run independant of every tick?

 

I want to make an expert that writes price data at specific time intervals, but so far, it only loops when a new tick of data comes in. Is there any way that it will loop constantly keeping track of the time, and then write data, like every five mintues, for a five mintue chart, etc.?

 

yes

int start(){

while(IsStopped() == false){

... your ea code

...Sleep( sleepTime);

}

return(0);

}

 
ivango wrote >>

I want to make an expert that writes price data at specific time intervals, but so far, it only loops when a new tick of data comes in. Is there any way that it will loop constantly keeping track of the time, and then write data, like every five mintues, for a five mintue chart, etc.?

Snag with that is 'the data' you have could be out of date unless you do a RefreshRates()

Reason: