ZZ All Quotings v0.0070: Comprehensive History Downloader
Info
The ZZ All Quotings v0.0070: Comprehensive History Downloader is a Script for MetaTrader 4 that this script facilitates the comprehensive download of historical trading data for metatrader 4. Before utilizing the script, please configure the maximum number of bars displayed on your chart within MetaTrader 4's settings: Tools -> Options -> Charts.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Script works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Scripts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use ZZ All Quotings v0.0070: Comprehensive History Downloader
1. Installation: Move your script file into the MQL/Scripts directory and restart the platform.
2. Execution: Drag the script onto a chart; it will perform a one-time action, such as closing all open orders or clearing chart objects.
3. Editing: Use MetaEditor (F4) to modify code, click "Compile," and verify no errors appear in the terminal before running.
4. Removing: Scripts stop automatically, but you can remove them manually by right-clicking the chart and choosing "Remove Script."
Frequently Asked Questions
Q: How are scripts different from EAs? A: Scripts execute a single action and then stop; EAs monitor the market and trade continuously.
Q: Can I assign a hotkey to a script? A: Yes, right-click the script in the Navigator, select "Set Hotkey," and define your preferred keyboard shortcut.
Q: Why did my script stop? A: Scripts are designed to stop immediately after finishing their programmed command; this is normal behavior.
What this tool does
This script facilitates the comprehensive download of historical trading data for MetaTrader 4.
Typical Use Case
This Script excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Script works on MetaTrader 4. Place the file in the MQL4/Scripts folder and restart the terminal.
Description & Settings
Related: ZZ All Quotings 0-0050: Comprehensive History Download and Integrity Tool - another powerful script for MetaTrader 4 traders.
This script facilitates the comprehensive download of historical trading data for MetaTrader 4.Also recommended: Average Volume Per Hour Indicator - similar script with strong performance on MetaTrader 4.
Before utilizing the script, please configure the maximum number of bars displayed on your chart within MetaTrader 4's settings: Tools -> Options -> Charts. This value determines the quantity of historical data to be downloaded and monitored.
Following this adjustment, restart MetaTrader 4 and then execute the script.
Please note that the script's completion does not signify the immediate end of the history download process. The download can be monitored via the Task Manager. Once the download is complete, a restart of MetaTrader 4 is required to properly save the historical data into the *.hst files.
System Requirements:
The script has significant RAM requirements. With 1GB of RAM, downloading history from the MoneyRain DC server with the 'number of bars in a window' parameter set to 50,000 bars will only permit the download of a limited number of currency pairs and metals simultaneously.
In such cases, it is necessary to terminate MetaTrader 4 via the Task Manager for the *.hst files to be generated.
Subsequently, restart MetaTrader 4 and resume the download for the next group of instruments.
Version 0.0060 Additions (17.07.2026):
- A window displaying download information is presented upon script completion.
- Free RAM requirements have been reduced by more than half.
- An error in the naming of the "lbp" currency has been corrected.
- Operation optimized for modes without historical data gap control.
- The condition for controlling the arrival of historical data has been modified.
Version 0.0070 Additions (29.07.2026):
- The instrument groups "cfd london" and "cfd newyork" have been supplemented.
- A timer has been added for a timeout of the last bar, set to 1 minute from the latest update of the last bar's opening time.
You may also like: Money Management Script for MetaTrader - excellent alternative for script users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#include <winuser32.mqh>
datetime market_info, mark_inf, itimebegin, itimebegintemp, timetemp;
int a, b, p, h, e, ee, g, i, j, jj, ii, pp;
int arraytimfram_time[12] = {1, 5, 15, 30, 60, 240, 1440, 10080, 43200, 40320, 41760, 44640};
int arraycurrency[62][3] = {65, 85, 68, 65, 76, 76, 65, 82, 83, 66, 82, 76, 66, 87, 80, 67, 65, 68, 67, 67, 75, 67, 72, 70, 67, 76, 80, 67, 78, 89, 67, 79, 80, 67, 86, 69, 67, 89, 80, 67, 90, 75,
68, 75, 75, 68, 79, 80, 68, 90, 68, 69, 71, 80, 69, 85, 82, 71, 66, 80, 71, 69, 76, 71, 73, 80, 72, 75, 68, 72, 82, 75, 72, 85, 70, 73, 68, 82, 73, 78, 82, 73, 76, 83,
73, 82, 82, 73, 83, 75, 74, 80, 89, 75, 82, 87, 76, 66, 82, 76, 83, 76, 76, 84, 76, 76, 86, 76, 77, 65, 68, 77, 84, 76, 77, 88, 78, 77, 89, 82, 78, 79, 75, 78, 80, 82,
78, 90, 68, 80, 72, 80, 80, 75, 82, 80, 76, 78, 81, 65, 82, 82, 85, 66, 82, 85, 82, 83, 65, 82, 83, 69, 75, 83, 71, 68, 83, 75, 75, 84, 72, 66, 84, 78, 68, 84, 82, 89,
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.