How to Easily Download Historical Data in the MetaTrader 4 Terminal

We often need historical data to check indicators, expert advisors, and trading strategies on history. How to upload this data to MetaTrader 4? Let’s find out how to do it quickly and correctly.

Some indicators or expert advisors (EA’s) may signal to you that they do not have enough historical data for calculations. Some of them may give an error or make incorrect calculations without even informing you about it.

If your terminal is new or recently installed, then with a high degree of probability, you have not yet managed to upload historical data to the terminal.

Downloading

How to Download Historical Data

Step 1 – We must open the History Center in the terminal. There are two ways to do this:

a) From the terminal menu Tools > History Center

History Center from Menu

b) Press hotkey F2 in the terminal

Step 2 – Double click on the currency pair that you want to download, to be sure select M1 timeframe, and click the “Download” button:

History Center

Downloading data may take several minutes, especially if you have never done this before.

Step 3 – Repeat Step 2 for all the pairs you need, then restart the terminal!


Usually, this is the end of the process. But sometimes you may need to limit the amount of historical data or increase it instead.

How to Manually Limit the Amount of Downloaded Data

Why do we even need to limit the amount of data downloaded? Let’s find out.

First, we set the maximum possible values ​​of the variables Max bars in history and Max bars in chart.

Maximum Bars Settings

You can change this numbers using the drop-down menu or manually.

Don’t forget to restart the terminal after each configuration changing so that the changes take effect!

Then we open the History Center and see how far back the data goes.

Large Amount Data

This depth of history is rarely needed, and it takes up a lot of disk space (especially if you download data for a large number of trading instruments). Therefore, we can limit the Max bars in history to get the period we need without having unnecessary information.

For example:

Max bars in history = 500000 is approximately equal to 1.5 years of history.

Max bars in history = 750000 is approximately equal to 2 years of history.

Max bars in history = 750000

Thus, if you do not plan to use the entire depth of historical data, the value Max bars in history = 1200000 will give you a history depth of 3 years. Usually, this is enough in most cases.


🍀 Good Luck & Big Profits

Logo MAFX

About MAFX Solutions:

We provide Trading Systems, Expert Advisors, and Indicators for trading. With over 20 years of experience in trading, programming, and refining trading systems and strategies, we are excited to share our expertise with you. Discover exclusive trading products, along with a wealth of tips, tricks for profitable trading, and additional opportunities to boost your profits.


✔️ OVER 20 YEARS of experience in trading and programming trading algorithms
✔️ HIGH-QUALITY CODE and the latest innovations in trading algorithm development
✔️ UNIQUE TRADING ALGORITHMS and regular updates and improvements to our products
✔️ DETAILED MANUALS for our products and regularly updated educational materials for both beginners and experienced traders
✔️ LOTS OF POSITIVE FEEDBACKS and satisfied clients

Follow the News:
Back to top button