You may just check error codes to make sure they are returning correct values:
History Access |
|
|
ERR_HISTORY_NOT_FOUND | 4401 | Requested history not found |
ERR_HISTORY_WRONG_PROPERTY | 4402 | Wrong ID of the history property |
ERR_HISTORY_TIMEOUT | 4403 | Exceeded history request timeout |
ERR_HISTORY_BARS_LIMIT | 4404 | Number of requested bars limited by terminal settings |
ERR_HISTORY_LOAD_ERRORS | 4405 | Multiple errors when loading history |
ERR_HISTORY_SMALL_BUFFER | 4407 | Receiving array is too small to store all requested data |

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
P.S. it seems you can do stuff with SeriesInfoInteger and SERIES_SYNCHRONIZED but still that feels like a lot of extra work just to use in built functions. So if I have already built my EA with these functions should I just add this into the beginning of my OnTick function that make sure everything is synced up?
Or should I just start using CopyRates instead? Since I use multisymbol EAs the above code would obviously be different but I'm still confused as to why the iClose/Open/Time functions need the synchronization and CopyRates does not. Pls someone with more experience give advice on what you personally do/think is better, would greatly appreciate it.