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
Here is a fragment of that log file which shows that when a new bar starts, the Bars increase by 1 and not by the number of bars to be updated. So it does not help
Well, we can try to handle the situation somehow, but it seems we cannot do without some tricky tricks. Especially taking into account the rigid position of MQ on charts without holes.
On the other hand, the terminal knows whether it needs to pump up the history or not. If MQL had access to this knowledge, the problem would be solved much more naturally.
This will not do anything unless you first enable the code of the "chart without holes" type because existence of holes is a normal situation in MT. Although on large timeframes it will catch almost all failures.
The code should be written with maximum protection, because data pumping can be caused not only by the terminal, but also by the ISP, data centre, broker, computer hang-up and so on.