How to Download MetaTrader 5 Historical Data

<img fetchpriority="high" decoding="async" width="1920" height="1080" src="https://www.tradingheroes.com/wp-content/uploads/mt5-historical-data.jpg" class="attachment-full size-full wp-post-image" alt="Download MT5 historical data" style="float:right; margin:0 0 10px 10px;" srcset="https://www.tradingheroes.com/wp-content/uploads/mt5-historical-data.jpg 1920w, https://www.tradingheroes.com/wp-content/uploads/mt5-historical-data-768×432.jpg 768w, https://www.tradingheroes.com/wp-content/uploads/mt5-historical-data-1536×864.jpg 1536w, https://www.tradingheroes.com/wp-content/uploads/mt5-historical-data-1280×720.jpg 1280w" sizes="(max-width: 1920px) 100vw, 1920px" />
<p><strong>Having as much historical data as possible in MT5 is going to be extremely important for daily market analysis and backtesting. </strong></p>

<p>If you don't have all of the historical data available for a market, you can miss important support and resistance levels and you won't be able to see different market cycles over time. </p>

<p><em>This can mess up your live trading and backtesting results. </em></p>

<p>So in this tutorial, I'll show you how to download all of the available historical data for any market in MetaTrader 5. </p>

<p>You'll also learn how to upload custom data into MT5, so you can backtest data from different brokers and use third party data sets. Data from third party providers can be more complete and in some cases cleaner. </p>

<h2>How to Download Free MT5 Historical Data </h2>

<p>If you're just starting out, be sure to get all of the default data from MT5 first. Once you learn how to do it for one market, you can get data for any market that you trade in MT5. </p>

<p>The download process in MT5 is a little different than how you <a href="https://www.tradingheroes.com/download-mt4-historical-data/" target="_blank" rel="noreferrer noopener">download historical data in MT4</a>. So if you already know how to download data in MT4, be sure to pay attention to the differences. </p>

<h3>Remove Download Limits on Charts</h3>

<p>Start by making sure that there are no limitations on how much data can be downloaded for each market. </p>

<p>Go to <strong>Tools &gt; Options</strong>. </p>

<div>
<figure><img decoding="async" width="276" height="256" src="https://www.tradingheroes.com/wp-content/uploads/mt5-options.jpg" alt="" class="wp-image-1024033" /></figure></div>

<p>In the next window, select the <strong>Charts</strong> tab at the top, then select <em>Unlimited</em> under <strong>Max bars in chart</strong>. </p>

<div>
<figure><img decoding="async" width="600" height="393" src="https://www.tradingheroes.com/wp-content/uploads/unlimited.jpg" alt="" class="wp-image-1024034" /></figure></div>

<p>Click the <strong>OK</strong> button to save your settings. </p>

<p>Now that there are no limits on the amount of data you can have on each chart, it's time to download the data. </p>

<h3>Download the Data For Each Market </h3>

<p>Then go to <strong>View &gt; Symbols</strong>. You can also use Ctrl+U on your keyboard. </p>

<p>Select the appropriate tab at the top of the screen, either <strong>Bars</strong> or <strong>Ticks</strong>, depending on what you're going to use the data for. </p>

<p>If you're just going to use the data for charting, then you only need the <strong>Bars</strong> tab. If you want super detailed data for a backtest, or if you're going to be trading with tick data, then select the <strong>Ticks</strong> tab. </p>

<p><strong>On the Bars tab</strong>, select the market, timeframe and the date range that you want to download. </p>

<p>Then click the <strong>Request</strong> button. </p>

<p>Once the data has been downloaded, you'll see data in the table. You'll also see the number of bars downloaded under the market dropdown. </p>

<div>
<figure><img loading="lazy" decoding="async" width="829" height="592" src="https://www.tradingheroes.com/wp-content/uploads/mt5-1.png" alt="" class="wp-image-1024036" srcset="https://www.tradingheroes.com/wp-content/uploads/mt5-1.png 829w, https://www.tradingheroes.com/wp-content/uploads/mt5-1-768×548.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></figure></div>

<p>If you're using the <strong>Ticks</strong> tab, select the market, the type of ticks you want to get and the date range you want. </p>

<p>Remember that tick data can be quite large, so be sure that you have enough disk space for the amount of data you're requesting. If you have any doubts about if you need tick or bar data, start with bars first. </p>

<p>Click the <strong>Request</strong> button and the table will populate after the data is downloaded. </p>

<p>You'll see the number of ticks downloaded under the market dropdown menu at the top. </p>

<div>
<figure><img loading="lazy" decoding="async" width="827" height="592" src="https://www.tradingheroes.com/wp-content/uploads/mt5-2.png" alt="" class="wp-image-1024037" srcset="https://www.tradingheroes.com/wp-content/uploads/mt5-2.png 827w, https://www.tradingheroes.com/wp-content/uploads/mt5-2-768×550.png 768w" sizes="(max-width: 827px) 100vw, 827px" /></figure></div>

<p>That's how you download historical data in <a href="https://www.metatrader5.com/en" target="_blank" rel="noreferrer noopener">MT5</a>. </p>

<p>Now let's get into how to upload custom data into MetaTrader 5. </p>

<h2>MT5 Historical Data Alternatives </h2>

<p>If you don't want to use the default data from your broker, then you can also upload custom data that you download from other data sources. </p>

<p>This data could be from another broker or a third party data provider. Here's one example of a <a href="https://www.dukascopy.com/swiss/english/marketwatch/historical/" target="_blank" rel="noreferrer noopener">free data download</a>. </p>

<p>Start by downloading the custom data file that you want to upload. </p>

<p>Next, you need to create a custom symbol to upload the data to. </p>

<p>Go to <strong>View &gt; Symbols</strong> in the menu at the top of the screen. </p>

<p>Then click the <strong>Create Custom Symbol</strong> button at the bottom of the window. </p>

<figure><img loading="lazy" decoding="async" width="824" height="585" src="https://www.tradingheroes.com/wp-content/uploads/custom-symbol.jpg" alt="" class="wp-image-1024045" srcset="https://www.tradingheroes.com/wp-content/uploads/custom-symbol.jpg 824w, https://www.tradingheroes.com/wp-content/uploads/custom-symbol-768×545.jpg 768w" sizes="(max-width: 824px) 100vw, 824px" /></figure>

<p>The next screen will allow you to copy an existing symbol so you can upload a custom data set to that symbol. This is very useful because you don't have to set all of the parameters from scratch. </p>

<p>Select the market you want to copy from in the dropdown box in the lower left corner of the window and the table will populate with the data. </p>

<p>Change the name of the symbol at the top of the window. It's useful to use the original market name, then a dash, then the broker or source of the uploaded data. </p>

<p>This will help you remember where the data came from. </p>

<p>From there, you can click on the <strong>OK</strong> button to add the custom symbol. You can also click on the <strong>Import</strong> button to upload the data right away. </p>

<p>Once you've added the symbol by clicking the <strong>OK</strong> button, it will be available on the <strong>Bars</strong> and <strong>Ticks</strong> tabs in the <strong>Symbol</strong> screen. </p>

<p>To upload your file, go to either the <strong>Bars</strong> or <strong>Ticks</strong> tab in <strong>View > Symbols</strong>, depending on the type of data you have in your custom file. </p>

<p>I'll demonstrate with the <strong>Bars</strong> tab because that's what most people will use. </p>

<p>After you've selected your new symbol at the top, click on the <strong>Import Bars</strong> button at the bottom. </p>

<div>
<figure><img loading="lazy" decoding="async" width="837" height="592" src="https://www.tradingheroes.com/wp-content/uploads/import-bars-1.jpg" alt="" class="wp-image-1024048" srcset="https://www.tradingheroes.com/wp-content/uploads/import-bars-1.jpg 837w, https://www.tradingheroes.com/wp-content/uploads/import-bars-1-768×543.jpg 768w" sizes="(max-width: 837px) 100vw, 837px" /></figure></div>

<p>In the next window, click on the <strong>Browse</strong> button to locate your downloaded historical data file. </p>

<p>Once your file is selected, you'll see a preview of the data in the window below. </p>

<p>You can change the column separator and skip the first X number of columns or rows, if they are blank or contain label information. This screen also allows you to shift the data by X number of hours, if you want your data displayed in specific timezone. </p>

<div>
<figure><img loading="lazy" decoding="async" width="594" height="355" src="https://www.tradingheroes.com/wp-content/uploads/import-2.jpg" alt="" class="wp-image-1024049" /></figure></div>

<p>When everything looks good in the preview window, click the <strong>OK</strong> button and you have now created a new symbol with custom uploaded data. </p>

<h2>Conclusion </h2>

<p>Having all of the available historical data for a market ensures that you'll see all historical data when you're trading and get accurate backtests. </p>

<p>So make sure that you have the maximum amount of data available before you start using MetaTrader 5 on a regular basis. </p>

<p>It just takes a few minutes and you'll be all set. </p>

<p></p>
<p>The post <a href="https://www.tradingheroes.com/download-mt5-data/">How to Download MetaTrader 5 Historical Data</a> appeared first on <a href="https://www.tradingheroes.com">Trading Heroes</a>.</p>

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *