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()
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.?