Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Calendar :
Author: fxsaber
It is better to immediately formulate what the task is.
It is better to immediately formulate what the task is.
Sorry fxsaber, let me clarify.
Basically, I start with the example code you shared, I am able to download and create a .bin file.
I am trying to code the below for Backtest, objective is to load the .bin in every iteration, so as to check for news/events of each currency listed in the class.
However, when I am doing backtesting, The Calendar.ToString returned blank.(the "Print" are for debugging)
thanks,
I am trying to code the below for Backtest, objective is to load the .bin in every iteration, so as to check for news/events of each currency listed in the class.
You only need to load the data from the file into a static variable once.
You only need to load the data from the file into a static variable once.
Thanks a lot, it is nice and precise.
You only need to load the data from the file into a static variable once.
Thanks fxaber,
I was able to tidy up the code with your suggestion, but still, the CalendarFULL is also empty after loading the .bin.
the CalendarFULL.Load does return a "1", but there seems nothing inside CalendarFULL.
Would it be some sort of encoding issue of the .bin?
THanks
the CalendarFULL.Load does return a "1", but there seems nothing inside CalendarFULL.
Run this script once in the MT5-terminal to generate the bin-file.
Run this script once in the MT5-terminal to generate the bin-file.
Thanks fxsaber, I did that and it did generate a 7xmb .bin file. However, still once I attempt to load and print out, it returned blank.
Thanks fxsaber,
Eventually, I found out the problem with my code, my .mq5 was saved as Unicode somehow, that made the fileread didnt work, once I change it to ANSI, it works.
Thanks,