Forex Blog

First-hand Forex trading experience and information about foreign exchange market that will be useful to traders

Archives

MetaTrader Templates Tutorial — Copying Settings Between Charts and Platforms

May 20, 2016 (Last updated on January 29, 2017) by Andriy Moraru

You might already know how to copy input parameters for a single indicator across different charts and platforms. You also might have mastered the power of copying the whole account profiles from one MetaTrader instance to another. However, sometimes, what you need is just to copy one chart — complete with its settings, attached indicators, and graphical objects — or to replicate all that on another chart. This is where MetaTrader templates come handy.

Consider a GBP/CAD chart set up like this:

MetaTrader chart with custom settings and indicators

You have spent a good deal of time to configure the chart settings, to attach all the indicators and set their input parameters, to add some graphical objects. Now, for example, you want to apply all the same to a GBP/CAD chart in another MetaTrader platform, which by default looks like this:

Bare chart in MT4

Saving a complete profile in the first platform and loading it in another is out of question — you do not want to copy all charts, you just want to copy this specific chart’s settings. The problem is solved with templates. Here is how to do it:

1. Save the template of your customized chart. Do this by right-clicking anywhere on the chart and selecting Template->Save Template…

Save template from your chart

2. Name the template file accordingly and click Save:

Choose template name and click save

Now, if you want to copy the template for usage in another platform, just follow to the next step. If you only want to load the template in another chart inside the same platform, you can proceed directly to step 8.

3. Open the platform’s data folder by using the menu File->Open Data Folder:

Open data folder

Alternatively, you can navigate to the folder using Windows Explorer:

C:\Users\<Windows_User_Name>\AppData\Roaming\MetaQuotes\Terminal\<Instance_ID>\

4. If you are using MetaTrader 4, open templates folder:

Templates folder in MT4

If you are using MetaTrader 5, first, open MQL5/Profiles folder:

Opening profiles folder in MT5

And then open Templates folder:

Templates folder in MT5

This is the only difference in handling templates between MT4 and MT5.

5. Copy your template file (it has .tpl extension):

Copy template file

6. Go to your target platform and open its data folder using menu File->Open Data Folder:

Open data folder in another platform

Alternatively, you can navigate to the folder using Windows Explorer:

C:\Users\<Windows_User_Name>\AppData\Roaming\MetaQuotes\Terminal\<Instance_ID>\

7. Open its templates folder (see step 4) and paste the template file here:

Paste template file

It is now ready for use in this another platform.

8. Right-click on the chart where you want to load your custom template and select the template’s name:

Load template

Alternatively, you can choose to load template from file — it is a useful feature when you do not want to copy the template file to the platform’s data folder:

Load template from file

This is it! Your new chart will now look exactly like the old one:

Chart with loaded template in another platform

Some final notes

  • The same can be done when you want to quickly load a complete set of chart parameters, indicators, and expert advisors on several charts inside one platform. Just save the template once and load it on other charts within the same MetaTrader.
  • Templates transfer everything (even EAs) except timeframe and currency pair. However, you need to have the same custom indicators and expert advisors files in the target platform, otherwise they will not load.
  • This tutorial is valid for both MT4 and MT5, but do not try loading MT4 template into MT5 chart or vice versa — it will not work, producing a funny looking chart instead.

Update 2017-01-29: Updated to reflect new location of Templates folder in MetaTrader 5 platform.

If you liked this tutorial or if you do not understand a part of it and still have some questions about working with chart templates in MetaTrader platform, please leave your replies and ask your questions via the commentary form below.

4 Responses to “MetaTrader Templates Tutorial — Copying Settings Between Charts and Platforms”

  1. Herc Demis

    Hi. I have downloaded a template which has various indicators on it & installed it on my MT4 trading platform but when I open the template on any trading chart it is not receiving any live feed data & all the indicators are frozen . Do I have to also load these same indicators into the template folder in order for them to work or do I have to go elsewhere and change some settings? Any ideas you have to rectify this problem would be greatly appreciated. Thankyou.

    Reply

    Andriy Moraru Reply:

    You do need to have all the custom indicators used in the template in the MQL4/Indicators/ folder, but not receiving live feed data is not connected with that. You should be receiving new ticks regardless of the templates and indicators used in your platform. Please check your platform’s connection, account login details, broker server’s connectivity, etc.

    Reply

  2. Will

    Your template is really nice, would you mind sharing it?

    Reply

    Andriy Moraru Reply:

    Which one? The “rust on black” one? You can download it here: https://www.earnforex.com/blog/files/Indicators.tpl

    It uses the Spread custom indicator.

    Reply

Leave a Reply

required
required (will not be published)
optional