The script purpose is to export historical rates data to format, convenient for analysis in external programs, for example, in MathCad (example is attached).
The output file contain the historical price data (bars) of the specified month in the following form:
DoubleToString(rates[i].time,0), // number of seconds, passed from 1 Janunary 1970 rates[i].open, // Open rates[i].high, // High rates[i].low, // Low rates[i].close, // Close rates[i].tick_volume, // Tick Volume tm.year, // year tm.mon, // month tm.day, // day tm.hour, // hour tm.min, // minutes tm.day_of_week, // week day (0-sunday, 1-monday) tm.day_of_year); // day index in the year (1st January is the 0-th day of the year)
MT5 Forex Script Characteristics
Platform: Metatrader 5
Time frames: any.
How to install Screenshot Script in MetaTrader 5 / MT5:
Copy and paste the Export historical data script for MetaTrader 5.zip files into the MQL5 Scripts folder of the Metatrader 4 trading platform.
Restart your MetaTrader 5 application (assuming it’s currently open) … or Launch your MetaTrader 4 application
You can access this folder from the top menu as follows:
File > Open Data Folder > MQL5 > Script (paste here)
On the left hand side, look for the “Navigator” window and under the “Common” tab, look into the “Scripts” section
Locate the indicator which you have just downloaded into the folder stated in Step 1
Drag (Click and drag) the Script onto the chart (when you want the task to be performed)
your task should now be executed…