Select Language

Download historical data

You can download historical data in 21 different timeframes on MetaTrader5 (MT5), and in 9 timeframes on MetaTrader4 (MT4). The data is also different between MT4 and MT5; it is provided by MetaQuotes on MT4, while on MT5, it is provided by each forex broker.

Here we will look at how to download historical data on MT4/MT5.

Switch between MT4/MT5 tabs to check the steps for each.

mt4
mt5

Step 1

First, increase the number of bars on charts. Click "Tools" on the menu and select "Options". (Shortcut keys: "Ctrl"+"O")

Options of the toolbar Options of the toolbar

Step 2

In the "Charts" tab, type "9"s till it reaches the ends of the "Max bars in history" and "Max bars in chart" fields. The maximum number of bars is "2,147,483,647" for both, which can be saved and retrieved automatically by typing "9"s. After that, restart MT4.

Max bars in history Max bars in history

Step 3

Next, download the historical data. Click "Tools" on the menu and select "History Center".

History Center History Center

Step 4

In the "Symbols" field of the "History Center" window, choose the symbol and timeframe you wish to download and click "Download".

Download historical data Download historical data

Step 5

If you receive a "Download Warning", check the warning and click "OK".

Download warning Download warning

Step 6

Once downloading is completed, you will see the number of downloaded data under the symbol field. The historical data beneath that will be applied to the chart. It might take some time depending on the amount of data.

Download historical data 2 Download historical data 2
point Difference in historical data of MT4 and MT5

The downloaded historical data of MT5 differs from those of MT4. When downloading historical data on MT4, the app downloads the data from the history center of MetaQuotes. Since these are price data provided by MetaQuotes, they will not match the price data provided by your forex broker.

On the other hand, in MT5, there is no history center. All price data comes directly from each forex broker. However, please note that some of their old data may come from price data provided by MetaQuotes.

Step 1

First, increase the number of bars on charts. Click "Tools" on the menu and select "Options". (Shortcut keys: "Ctrl"+"O")

Step 1 Step 1

Step 2

Set "Max bars in chart" to "Unlimited" in the "Charts" tab. Click "OK" and relaunch MT5.

Step 2 Step 2

Step 3

Next, download the historical data. Click "View" on the menu and select "Symbols". (Shortcut keys: "Ctrl"+"U")

Step 3 Step 3

Step 4

Download historical bar data

In the "Bars" tab, set the symbol, timeframe, and period for the historical data to download and click "Request".

Download historical bar data Download historical bar data

Download historical tick data

In the "Ticks" tab, set the symbol, timeframe, and period for the historical data to download and click "Request".

Download historical tick data Download historical tick data

Number

Item name

Descriptions

1

Symbol

Select the symbol for which you want to download the historical data.

2

Type

To download the historical bar data, select one of the 21 timeframes. To download the historical tick data, select the type of tick data.

3

Period

Specify the period of the historical data to download.

Step 5

Once downloading is completed, you will see the number of downloaded data under the symbol field and also the historical data beneath that. It might take some time depending on the amount of data.

Download historical bar data

Download historical bar data Download historical bar data

Download historical tick data

Download historical tick data Download historical tick data
caution If it says "limited by charts settings"
If it says limited by charts settings If it says limited by charts settings

If you see the message, "limited by charts settings" under the symbol field, the historical data of the specified period hasn't been fully downloaded. To fix this, you must adjust the settings to increase the number of bars displayed on the chart. Check/adjust your settings and restart MT5 to download all the historical data.

point Difference in historical data of MT4 and MT5

The downloaded historical data of MT5 differs from those of MT4. When downloading historical data on MT4, the app downloads the data from the history center of MetaQuotes. Since these are price data provided by MetaQuotes, they will not match the price data provided by the actual forex broker. In MT5, there is no history center. All price data comes directly from each forex broker. However, please note that some of their old data may come from price data provided by MetaQuotes.


Date

Created

 : 2022.09.09

Update

Last updated

 : 2024.02.07

Takayoshi Nakamaru

Manual production consultant, MBA

arrow
Takayoshi Nakamaru

Nakamaru is a manual production consultant at FINTECS, a company that specializes in creating manuals for their clients.
With a wide range of experience from fintech to entertainment, he presents what user-friendly manuals should be like.
He works with numerous large corporations as an external manual production project manager.

【Business information】
http://www.fintecs.co.jp/profile/

Supervisor

Akira Takagi

Systems engineer, MetaTrader administrator

arrow
Akira Takagi

After graduating from Computer Science at the Uninove, Brazil, in 2014, he has worked on various systems development projects.
He participated as a developer in the launch of forex services in 2019. Since then, he has also been involved in the development of MetaTrader plugins and APIs. He is certified by MetaQuotes as a MetaTrader5 Administrator and active in consulting and advisory as well.

Was this article helpful?

We hope you find this article useful. Any comments or suggestions will be greatly appreciated.  
We are also looking for writers with extensive experience in forex and crypto to join us.

please contact us at [email protected].

Thank you for your feedback.
Thank you for your feedback.

Disclaimer:arw

All information and content provided on this website is provided for informational purposes only and is not intended to solicit any investment. Although all efforts are made in order to ensure that the information is correct, no guarantee is provided for the accuracy of any content on this website. Any decision made shall be the responsibility of the investor and Myforex does not take any responsibility whatsoever regarding the use of any information provided herein.

The content provided on this website belongs to Myforex and, where stated, the relevant licensors. All rights are reserved by Myforex and the relevant licensors, and no content of this website, whether in full or in part, shall be copied or displayed elsewhere without the explicit written permission of the relevant copyright holder. If you wish to use any part of the content provided on this website, please ensure that you contact Myforex.

  • Facebook
  • Twitter
  • LINE

Myforex uses cookies to improve the convenience and functionality of this website. This website may include cookies not only by us but also by third parties (advertisers, log analysts, etc.) for the purpose of tracking the activities of users. Cookie policy

I agree
share
Share
Cancel