Skip to content
← All posts

MetaTrader Indicators

How to Save and Load an MT4 Chart Template with Your Indicators

EABuild Team · · 10 min read

How to Save and Load an MT4 Chart Template with Your Indicators – EABuild

An MT4 chart template is a saved copy of how one chart looks: the indicators attached to it, their input values, the colours, the scale and the lines you drew. This post shows how to save one, load it on another chart, make it the default for every new chart, and what changes in MetaTrader 5.

What an MT4 chart template stores and what it leaves out

When you save a template, MetaTrader writes a small file with the extension .tpl. The file records the chart's appearance and the indicators on it, so you can rebuild the same layout in a few clicks instead of attaching each tool by hand.

What goes into the template

  • The indicators attached to the chart, in the main window and in sub-windows, with the input values you set for each one.
  • Chart colours, the chart type (candles, bars or line), grid, volume display and zoom settings.
  • Objects you drew, such as trend lines, horizontal levels and text labels.
  • Any expert advisor attached to the chart, together with its inputs.

What stays outside the template

A template does not contain the indicator program itself. The compiled file must already be in the MQL4 Indicators folder of the terminal that loads the template. If it is missing, the chart loads without that indicator. A template also does not install anything for you, and it does not decide which symbol you trade.

Do not confuse a template with a profile. A profile (File, Profiles) saves a whole group of open charts, while a template saves the look of one chart. Many traders use both: templates to style each chart, and a profile to reopen a full workspace.

What to have ready before saving a template in MT4

Spend a few minutes on the chart before you save. A template captures the chart exactly as it is at that moment, including mistakes.

  • Install every indicator you want in the template. If you still need to do that, the guide to installing an EA or indicator on MT4 covers the Indicators folder.
  • Open a chart on a symbol and timeframe that suit the indicators. Each tool is designed for its own market, so check its listing first.
  • Attach the indicators one at a time and set their inputs. Press OK in the properties window each time.
  • Remove objects you do not want to see again. A stray line from last week will be saved with everything else.
  • Check colours against your chart background. Indicator lines in the same shade as the candles are hard to read.

Saving a chart template in MT4 step by step

  1. Open the chart that looks the way you want, with all indicators attached and configured.
  2. Right-click an empty area of the chart. You can also use the Charts menu at the top of the terminal.
  3. Choose Template, then Save Template.
  4. A file dialog opens in the templates folder. Type a short name that says what the template is for, for example H1 trend layout or M5 scalping view.
  5. Press Save. The name now appears in the Template menu list.

Use names you will still understand in six months. Two templates called new and new2 are easy to mix up, and loading the wrong one on a live chart replaces your layout in a second.

Where the file is stored

In MT4 choose File, then Open Data Folder, and open the folder called templates. Your .tpl files are there. You can copy them to a USB stick, rename them or delete the ones you no longer use. To move a template to another computer, copy the file into the templates folder of that terminal and install the same indicator files in its Indicators folder.

Loading a saved template on another MT4 chart

  1. Open the chart you want to restyle. It can be any symbol.
  2. Right-click the chart, choose Template, then Load Template.
  3. Select the name you saved and confirm.

The loaded template replaces what was on the chart: its indicators, colours and objects change to match the file. Anything you had on that chart and did not save will disappear. If you are unsure, save the current look under a new name first.

Checks after loading

  • Look at the Navigator panel and the chart window to confirm every indicator is visible. A missing one usually means its file is not in the Indicators folder.
  • Open the indicator list (right-click the chart, then Indicators List) and confirm the input values match what you saved.
  • Check the symbol and timeframe against what the indicators are designed for. A template will happily apply an M5 layout to an H4 chart.
  • If an expert advisor was part of the template, check the algo trading button and the smiley face in the chart corner before you trade.

Setting a default MT4 chart template for new charts

You can make MT4 open every new chart with a chosen layout. The terminal looks for a template file named default.tpl and applies it to each chart you open.

  1. Build the chart the way you want new charts to look.
  2. Right-click the chart, choose Template, then Save Template.
  3. Type the name default and save. If the dialog asks whether to replace the existing file, confirm.
  4. Open a new chart from File, New Chart. It should now carry your indicators and colours.

Be careful with what you put in the default. If it includes an indicator that is only suited to one symbol, every new chart will show it, even where it makes no sense. Many traders keep the default plain, with colours and a volume setting only, and use named templates for tool-specific layouts.

To undo the change, open the templates folder and delete or rename default.tpl. New charts then return to the terminal's built-in look.

Example layouts for indicators listed in this shop

The three layouts below show how a template can be organised around one indicator. They describe what each listing states and nothing about how the signals perform. All three are chart tools for MetaTrader 4; they draw on the chart and do not place trades.

An H1 layout for a trend indicator

PipFinite Trend PRO Indicator for MT4 is listed for the H1 timeframe, with trend, news trading and breakout signal types. A template for it can start from an H1 chart, with the indicator attached and your colours chosen. Save it as H1 trend layout and load it on each symbol you want to watch. The listing does not name symbols, so test each one on a demo account first.

An M5 layout for a scalping indicator

Scalper Inside PRO Indicator for MT4 is listed for US30 on M5. A template named for that pair keeps the timeframe and colours consistent every time you open the chart. Your broker may spell the index differently, so confirm the symbol name before you load the template there.

A gold layout with several files

FX Vortex Indicator for MT4 is listed for XAUUSD and comes as five compiled indicator files with a PDF guide. When a package has several files, the template saves the work of attaching and configuring them one by one. Read the PDF before you set the inputs, then save the result as a template so you do not have to repeat it.

All three products are included in the membership, which gives access to every product in the catalogue. For background on how this kind of tool works, see the MetaTrader indicators guide.

The MT5 difference when you save a chart template

The idea is the same in MetaTrader 5, and the menu path is almost identical: right-click the chart, choose Template, then Save Template. Load Template works the same way. Several details differ.

  • The terminal stores templates under File, Open Data Folder, in Profiles and then Templates.
  • A default.tpl file in that folder is also applied to new charts, so the default method above carries over.
  • MT5 indicators are compiled MQL5 files and live in MQL5 and Indicators. An MT4 indicator file does not load in MT5, so a template that names an MT4 tool will not rebuild it there.
  • Do not copy a .tpl file between MT4 and MT5 and expect an identical result. Build and save the template inside each platform.

If you use both platforms, keep one templates folder per terminal, with the same names for the same layouts. That makes it easy to see which MT4 layout matches which MT5 one.

Common problems with MT4 chart templates

The indicator is missing after loading

The file is not in the Indicators folder of this terminal, or it was added after the terminal started. Copy it into MQL4 and Indicators, refresh the Navigator panel or restart, and load the template again.

The inputs look different

A template stores the inputs you set when you saved it. If you changed them on the chart afterwards and did not save again, loading the template restores the old values. Save over the same name to update it.

New charts open with something you did not want

That is the default template at work. Replace it with a plain one, or delete default.tpl from the templates folder.

The layout looks wrong on another symbol

Price scale, zoom and fixed levels do not fit every instrument. Gold, an index and a currency pair have very different price ranges, so lines you drew by hand may sit off screen. Remove objects that belong to one symbol before saving a general template.

FAQ

Does an MT4 chart template save the indicator file itself?

An MT4 chart template does not save the indicator program itself. The .tpl file records which indicators are attached and their input values, but the compiled file must already be in the MQL4 Indicators folder of the terminal that loads the template. If the file is missing, the chart loads without that indicator.

Does a chart template include an attached expert advisor?

A chart template does include an expert advisor attached to the chart, together with its inputs. It also stores indicators, colours, chart type, zoom and the objects you drew. After loading such a template, check the algo trading button and the smiley face in the chart corner before you trade.

How do I make a template the default for new MT4 charts?

To make a template the default for new MT4 charts, save it under the name default. The terminal looks for a file named default.tpl and applies it to each new chart. Keep the default plain, with colours and a volume setting only, because an indicator suited to one symbol will otherwise appear on every chart. Delete default.tpl to undo it.

Can I copy a .tpl template file between MT4 and MT5?

A .tpl file should not be copied between MT4 and MT5 with the expectation of an identical result. MT5 indicators are compiled MQL5 files, and an MT4 indicator file does not load in MT5, so a template naming an MT4 tool will not rebuild it there. Build and save the template inside each platform.

Setting up your template library this week

Start with one chart you use often. Clean it up, save it under a clear name, then load it on a second chart to confirm it rebuilds the same view. Add a plain default.tpl afterwards, and make one named template per indicator you rely on. Our guide to loading a set file in MT4 and MT5 covers the related case of saved EA inputs.

Keep every layout on a demo account until you have watched it for several sessions. Check the settings before you trade live.

Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results; only trade with money you can afford to lose.

Tags: Chart Setup, MT4 Indicators, MetaTrader Indicators

← All posts

Get every EA with membership

829 products · from $10.75/month

See plans

More in MetaTrader Indicators

Offer ends inhm$249 lifetime →