Experts: MQL5 Programming for Traders – Source Codes from the Book. Part 7

 

MQL5 Programming for Traders – Source Codes from the Book. Part 7:

The final seventh part of the book discusses the advanced capabilities of the MQL5 API, which will be useful when developing programs for MetaTrader 5. These include custom financial symbols, built-in economic calendar events, and general-purpose technologies such as networking, databases, and cryptography.

MQL5 Programming for Traders – Source Codes from the Book. Part 7

Author: MetaQuotes

 
Here is small bugfixes and improvements for calendar cache and filter.
MQL5 Book: Advanced language tools / Economic calendar / Transferring calendar database to tester
MQL5 Book: Advanced language tools / Economic calendar / Transferring calendar database to tester
  • www.mql5.com
The calendar is available for MQL programs only online, and therefore testing news trading strategies poses some difficulties. One of the solutions...
Files:
 
More bugfixes and improvements for the economic calendar reading and exporting to CSV are published in the codebase. Specifically, the sorting algorithm is fixed for the case of mostly sorted large arrays (which are usually received from MQL5 calendar API), so that slow-downs and stack-overflows are eliminated.
Economic Calendar CSV
Economic Calendar CSV
  • www.mql5.com
This script saves a predefined set of economic events from the MetaTrader's built-in economic calendar into CSV file.