A5005:
I use CalendarValueHistory to get historical calendar data.
But the most important parameter for me is the Event IMPORTANCE:
But exactly this value is NOT in the MqlCalendarValue structure. (Values are set in the listing ENUM_CALENDAR_EVENT_IMPORTANCE)
Is it somehow possible to get it or to calculate it from the values of the MqlCalendarValue structure?
Many Thanks
I just found an example code that solves my problem. CalendarValueHistoryByEvent is my friend.
https://www.mql5.com/en/docs/calendar/calendarvaluehistorybyevent
https://www.mql5.com/en/articles/9874
![MQL5 Cookbook – Economic Calendar MQL5 Cookbook – Economic Calendar](https://c.mql5.com/36/59/mql5-cookbook-economic-calendar.jpg)
MQL5 Cookbook – Economic Calendar
- www.mql5.com
The article highlights the programming features of the Economic Calendar and considers creating a class for a simplified access to the calendar properties and receiving event values. Developing an indicator using CFTC non-commercial net positions serves as a practical example.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
But the most important parameter for me is the Event IMPORTANCE:
But exactly this value is NOT in the MqlCalendarValue structure. (Values are set in the listing ENUM_CALENDAR_EVENT_IMPORTANCE)
Is it somehow possible to get it or to calculate it from the values of the MqlCalendarValue structure?
Many Thanks