Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
use code below to get new data before scan it.
while(!IsStopped() && get_new_data) {
get_new_data = false;
RefreshRates();
for(int i = 0; i < ArraySize(FX_Pairs); i++)
if(Time[0]!=iTime(FX_Pairs[i],0,0)) {
get_new_data = true;
}
if(get_new_data) { Print("Waiting load data !"); Sleep(2000); }
}
use code below to get new data before scan it.
while(!IsStopped() && get_new_data) {
get_new_data = false;
RefreshRates();
for(int i = 0; i < ArraySize(FX_Pairs); i++)
if(Time[0]!=iTime(FX_Pairs[i],0,0)) {
get_new_data = true;
}
if(get_new_data) { Print("Waiting load data !"); Sleep(2000); }
}
Thanks. I try that.
But refreshrates is only for current symbol only right?
Thanks. I try that.
But refreshrates is only for current symbol only right?
No, i do not think so. let see it https://docs.mql4.com/series/refreshrates
No, i do not think so. let see it https://docs.mql4.com/series/refreshrates
Maybe I got the wrong idea.
Thanks. Will try and let you all know the results.
So I'm right. Refresh rates work on current symbol.
So I'm right. Refresh rates work on current symbol.
Maybe, but try to delete it from code above then you see problem.