Scripts: Economic Calendar CSV

 

Economic Calendar CSV:

This script saves a predefined set of economic events from the MetaTrader's built-in economic calendar into CSV file.

Economic Calendar CSV

Author: Stanislav Korotky

 
New version incorporates and demonstrates an important feature (implemeted in the TimeServerDaylightSavings lib) of time correction for historical events to align them with corresponding bars in past, which could be (and in most cases did) formed under different time zones, if the broker switches daylight saving mode on/off or even changed server time zone completely. With adjusted times news events can be accurately used during backtests on the history.
TimeServerDaylightSavings
TimeServerDaylightSavings
  • www.mql5.com
Time-related functions for empirical detection of server time zone and daylight savings mode (DST) from history of quotes