PC Download historical data
This article was :
published
updated
On MetaTrader 4 (MT4), historical price data can be downloaded in 9 timeframes, whereas MetaTrader 5 (MT5) provides access to both historical price and tick data across 21 timeframes.
Here we will look at how to download historical data on MT4/MT5.
Switch between MT4/MT5 tabs to check the steps for each.


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


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. To be precise, the maximum number of bars is "2,147,483,647" for both, which will be automatically applied if a larger number is entered.After that, click "OK" and restart MT4.


Step 3
Next, download the historical data. Click "Tools" on the menu and select "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".


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


Step 6
Once downloading is completed, you will see the number of downloaded data at the top and the historical data beneath that will be applied to the chart. It might take some time depending on the amount of data.


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, 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 2
Set "Max bars in chart" to "Unlimited" in the "Charts" tab. Click "OK" and relaunch MT5.


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


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 tick data
In the "Ticks" tab, set the symbol, timeframe, and period for the historical data to download and click "Request".


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.
If you have downloaded historical bar data


If you have downloaded historical tick data




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.
Related article: Import historical data
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, 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.
Was this article helpful?
0 out of 0 people found this article helpful.
Thank you for your feedback.