Download MetaTrader 5

error code 4066 ,mt4

To add comments, please log in or register
zbj
144
zbj  

4066 ERR_HISTORY_WILL_UPDATED Requested history data is in updating state


1, what the solution is ,how to prevent the error 4066  ,code 

2, Why MQL5 don't have error code 4066 

thanks  

Alain Verleyen
Moderator
32825
Alain Verleyen  
1648401654c:

4066 ERR_HISTORY_WILL_UPDATED Requested history data is in updating state


1, what the solution is ,how to prevent the error 4066  ,code

You can try to prevent it by downloading needed data before runnning your EA. But it's better to deal with this error in your code, by waiting data downloading.

2, Why MQL5 don't have error code 4066

You can also get similar error with mql5 (error 4401 for example). The error code isn't the same as it's an other language.


thanks  

You are welcome.
zbj
144
zbj  
angevoyageur:

You can try to prevent it by downloading needed data before runnning your EA. But it's better to deal with this error in your code, by waiting data downloading.

You can also get similar error with mql5 (error 4401 for example). The error code isn't the same as it's an other language.


You are welcome.

indicator , using what function for waiting data downloading ? 

can you give a simple code? 

Alain Verleyen
Moderator
32825
Alain Verleyen  
1648401654c:

indicator , using what function for waiting data downloading ? 

can you give a simple code? 

See mql4.com forum.
Problems with ERR_HISTORY_WILL_UPDATED (4066 ) & weekends - MQL4 forum
  • www.mql5.com
Problems with ERR_HISTORY_WILL_UPDATED (4066 ) & weekends - MQL4 forum
Alain Verleyen
Moderator
32825
Alain Verleyen  

Forum on trading, automated trading systems and testing trading strategies


Ovo, 2014.09.17 08:18

When referring the to MQL4, the implementation of this error is a dummy. First call to a particular function sets error 4066, while any subsequent resets it. This error is not related to the actual status of data update in the MT4 terminal.

To add comments, please log in or register