4066 requested history data in update state .....(. F07A.TRAFFICTime F04-FBug->Error# : 4066)

 

Hi sirs,


Updating my Old EA, that return me this message (4066      requested history data in update state ...... F07A.TRAFFICTime  F04-FBug->Error# :  4066 ), the fonction was :

//<F07A.TIMERCHECK()
void F07A_TimerCheck()
{
                if(Fbug==1) {ResetLastError();}
  RefreshRates();
  for(int u=0;u<aqi_TmFram;u++) // (aqi_TmFram=9)
     {
     if(att_FixTime[u]    !=iTime(NULL,ati_TmFram[u],0))
       {
        att_FixTime[u]    =iTime(NULL,ati_TmFram[u],0);
        atb_OkNewBar[u]   =true;
        atb_OkNewBarVIG[u]=true;
       }
                if(Fg07){if(atb_NotDone[7]){Alert("att_FixTime[u]",sp,TimeToStr(att_FixTime[u],TIME_DATE|TIME_MINUTES),sp,u,sp,ati_TmFram[u]);}} 
     }

                if(Fbug==1){F04_Bug("F07A.TRAFFICTime");}     
return;   
}
//< END F07A.TIMERCHECK()___________________________________________________________________________________________________________________________________________________________
//.


Somebody could have an answer for that ?

Thank's in advance for your help :-) ,


Daniel

 

On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
          Download history in MQL4 EA - MQL4 programming forum - Page 3 #26.4 (2019)

 
William Roeder #:

Sur MT4 : à moins que le graphique actuel ne soit ce ou ces symboles/TF spécifiques référencés, vous devez gérer les erreurs 4066/4073 avant d' accéder aux valeurs des bougies/indicateurs.
Historique des téléchargements dans MQL4 EA - Forum de programmation MQL4 - Page 3 #26.4 (20 19 )

Thank you for help. :-)