MT4 Templates: Save Your Chart Setup (2026)
MT4 templates save your chart colors, indicators, EA settings, and display preferences in a single .tpl file. Create one by right-clicking your chart, selecting Template, then Save Template. Apply it to any chart with one click. Save your most-used setup as "default.tpl" and every new chart opens with your preferred configuration automatically.
If you have ever spent ten minutes getting a chart just right only to lose the setup after a platform restart, MT4 templates fix that. I use them daily to keep my XAUUSD charts consistent, and they matter even more for EA traders who need to replicate the same configuration across several charts or computers. This guide walks through every option, from basic color schemes to deploying an EA template on a VPS.
Templates are one of those MT4 features that most traders learn about by accident, usually after rebuilding the same chart for the fifth time. Once you understand what a template actually stores and how MetaTrader applies it, the whole workflow around chart setup, EA deployment, and multi-account management changes. This is especially true if you are running the same EA on several instruments or several VPS instances, where manually recreating a setup is not just tedious, it is a place where mistakes creep in: a missed input parameter, a different timeframe, an indicator left off. A saved template removes that variable entirely.
In This Guide
What MT4 Templates Save
A template captures the complete visual and functional state of your chart. Here is exactly what it saves:
| Setting Category | Saved in Template | Not Saved |
|---|---|---|
| Chart Colors | Background, candle colors, grid, volumes | -- |
| Chart Type | Bar, candlestick, or line | -- |
| Indicators | All attached indicators and their parameters | -- |
| Expert Advisors | Attached EA and its input parameters | -- |
| Scale & Display | Zoom level, auto-scroll, chart shift | -- |
| Symbol | -- | Chart instrument (XAUUSD, EURUSD, etc.) |
| Account Info | -- | Login credentials, server |
A few of these rows deserve more explanation than the table can give. On the "Not Saved" side, the fact that a template skips your login credentials and server is not an oversight, it is what makes templates safe to share. You can hand a .tpl file to another trader, post one in a Discord group, or attach one to a support ticket without leaking anything about your account. According to MQL5's own documentation, template files only ever reference chart objects, indicator settings, and EA input values, never account-level data.
The indicator row hides a real gotcha, though. A template stores the settings for whatever indicator is attached (period, colors, applied price), but it does not embed the actual compiled indicator file. If you copy a template built with a custom indicator to a machine that does not have that indicator's .ex4 or .ex5 file installed, MT4 will show the indicator's name in the chart window but throw a "custom indicator" error instead of plotting anything. This trips people up constantly when transferring templates to a fresh VPS: the template arrives fine, but the custom indicator it depends on has to be copied separately into the MQL4/Indicators folder first, or the template loads with a broken reference.
Creating an MT4 Template
Follow these steps to create your first template:
- Set up your chart exactly how you want it: Choose your preferred colors, chart type, and timeframe
- Add indicators: Attach any indicators with your preferred parameters (e.g., 200 EMA, RSI 14)
- Attach EA if desired: If you want the template to include an EA, attach it and configure all input parameters
- Right-click on the chart
- Select Template, then Save Template
- Name it descriptively: Use names like "GoldenViper_H4" or "XAUUSD_Analysis" so you can identify templates quickly
- Click Save
Naming convention tip: I stick to the format "Purpose_Timeframe" for every template I save. "GoldenViper_H4" for my EA chart, "Analysis_H1" for manual analysis, "Clean_D1" for a minimal daily chart, that sort of thing. It sounds trivial, but it is the difference between finding the right template in seconds and hunting through a dozen vaguely named files months later.
One habit worth building before you save: strip the chart of anything you do not want baked in. If you have been drawing trendlines, marking support and resistance, or leaving a Fibonacci retracement on the chart while you worked, those drawing objects get saved into the template too. That is fine for a personal analysis template, but it is a problem if you are saving a clean "EA deployment" template meant to be reused across multiple charts. I keep a separate, deliberately empty chart just for building EA templates, so nothing from my manual analysis leaks into it by accident.
Applying MT4 Templates
To apply a saved template to any chart:
- Open a new chart or click on an existing one
- Right-click on the chart
- Select Template
- Click your saved template name
- All settings apply instantly: colors, indicators, EA, everything
The chart symbol does not change when you apply a template. Say you have a EURUSD chart open and apply a template you built on XAUUSD: the visual settings carry over, but the chart stays on EURUSD. That is by design, and it means you can reuse the same visual setup across different instruments.
Watch for overwrites: Applying a template to a chart that already has an EA or indicators running does not merge the two setups, it replaces them. If you apply a fresh template to a chart where Golden Viper EA is already attached and trading, the existing EA instance gets removed and swapped for whatever the template specifies, which can include a completely different set of input parameters. Always double-check which chart you are clicking on before applying a template, especially on a VPS running several live charts side by side.
You can also apply a template by dragging its file directly from the Navigator window's Templates section onto an open chart, which is faster than the right-click menu once you have more than a handful saved. Both methods produce an identical result.
The Default Template: Automate Every New Chart
The most powerful thing MT4 templates can do is the default template. Save a template as "default.tpl" and every new chart you open automatically uses those settings. It saves a real amount of time:
- Consistent analysis: Every chart starts with your preferred colors and indicators
- EA auto-attach: If you include an EA in the default template, it attaches to every new chart automatically
- Professional workflow: No more manually configuring each chart after opening
Warning: Be careful about including an EA in your default template. Every new chart you open will have that EA attached and potentially trading. Only do this if you actually want the EA running on every chart you open. For most traders, a separate EA template is the safer choice rather than folding it into the default.
If you run more than one MT4 terminal, say one per broker, keep in mind that default.tpl is local to each installation's data folder. Setting a default template on your primary broker's terminal has no effect on a second terminal pointed at a different broker. That is usually what you want, since different brokers can have different quote conventions or symbol suffixes (XAUUSD vs XAUUSD.m, for example), but it does mean you have to repeat the default.tpl setup once per terminal rather than once per computer.
MT4 Templates for EA Trading
Templates are especially valuable for XAUUSD EA traders. Here is how I use them with Golden Viper EA.
Creating an EA Template
- Open a chart with the correct symbol and timeframe
- Attach Golden Viper EA and configure all input parameters
- Verify the EA is running correctly (smiley face, no errors)
- Right-click the chart, select Template, then Save Template
- Name it "GoldenViper_H4" (or your preferred timeframe)
Before you rely on the template for real trading, apply it once to a fresh demo chart and confirm the smiley face appears and the EA's log tab shows no errors. It only takes a minute, and it catches the rare case where a template saved with a slightly different broker's symbol name (XAUUSD vs GOLD vs XAUUSD.m) fails to auto-attach cleanly on the target chart.
Deploying on a VPS
When setting up a new VPS or reinstalling MT4:
- Copy your .tpl file to the VPS templates folder
- Open a new XAUUSD chart
- Apply the template, and the EA attaches with all your settings instantly
- No need to manually re-enter every parameter
This matters most if you manage multiple VPS instances or need to update your EA version across several installations, since templates keep the configuration consistent every time. A related habit worth adopting: whenever you rebuild or migrate a VPS (see our VPS comparison guide if you have not settled on a provider), apply the template and then immediately compare its input parameters against a screenshot or note from the prior installation. It is a five-minute sanity check that prevents you from running a stale configuration for weeks without noticing, which is a more common failure mode than people expect after a routine terminal reinstall or scheduled VPS reboot.
Template Settings and Risk Parameters
When you build an EA template, you are effectively freezing a snapshot of every input the EA exposes at the moment you save it. For most Expert Advisors, including Golden Viper, those inputs typically fall into a few general categories every trader should understand before locking them into a template: position sizing (fixed lot vs percentage-of-equity risk), protective levels (stop loss and take profit distances), and operating hours or session filters. None of this is unique to any one EA; it is standard MetaTrader input architecture, and Investopedia's overview of Expert Advisors covers the general concept well if you are new to automated trading, alongside their broader explainer on algorithmic trading for context on how rules-based systems like EAs fit into the wider trading landscape.
The practical point for templates is this: if your risk tolerance or account size changes, a template with outdated input values will happily reapply the old numbers to a new chart without warning you. If you are sizing positions based on account balance, revisit our lot size guide and update the template's saved parameters any time your account balance materially changes, rather than assuming a template built six months ago is still appropriate for your current equity.
Choosing a Template Strategy by Trading Style
Not every template needs to look the same, and the setup that works for scalping a five-minute chart is usually the wrong one for a swing-trading daily chart. I keep separate template families for different trading styles, and the table below is roughly what each one looks like in practice. Use it as a starting point rather than a rulebook, since your own preferences around color and indicator count will differ.
| Trading Style | Typical Timeframe | Common Indicators | Chart Setup Notes |
|---|---|---|---|
| Scalping | M1 - M5 | Fast EMAs, spread/session indicator | High contrast colors, minimal clutter for quick reads |
| Day Trading | M15 - H1 | 200 EMA, RSI, support/resistance lines | Slightly more indicators, session markers for London/NY overlap |
| Swing Trading | H4 - D1 | Trend-following MAs, higher-timeframe pivots | Wider chart shift, more zoom-out for multi-day context |
| EA / Automated | Matches EA's designed timeframe | Only what the EA itself needs, kept minimal | Clean chart, no manual drawing objects, EA attached and verified |
That last row matters more than it looks. An EA template should be the leanest of all your templates. Every extra indicator you leave attached to an EA chart consumes a small amount of processing time on every tick, and while that is rarely enough to matter on a single chart, it adds up if you are running several instrument templates on the same VPS.
Gold specifically behaves differently across sessions, which is another reason a single one-size-fits-all template rarely works well for XAUUSD. Volatility during the London/New York overlap looks nothing like the quieter Asian session, and spot gold pricing you can cross-check on Kitco or through the World Gold Council tends to show wider ranges around major data releases. A day-trading template with tighter zoom and session markers earns its keep specifically because gold's character shifts throughout the trading day in a way a flatter instrument does not.
MT4 Templates vs MT5 Templates
Since this site covers both platforms and Golden Viper itself covers both MT4 and MT5, it is worth being direct about how templates behave differently between the two. They are conceptually the same feature, but they are not interchangeable files.
| Aspect | MT4 | MT5 |
|---|---|---|
| File extension | .tpl | .tpl (separate format internally) |
| Storage folder | MQL4 data folder \ templates | MQL5 data folder \ templates |
| Cross-platform compatible? | No | No |
| EA compatibility inside template | References MT4 (.ex4) EAs only | References MT5 (.ex5) EAs only |
| Migration approach | Rebuild the template manually on the target platform; do not copy the file across | |
The practical takeaway: if you trade on both platforms, plan on maintaining two separate sets of templates rather than expecting one to work on both. The good news is that once you have built the MT4 version, recreating it in MT5 is fast, since you already know exactly which indicators, colors, and parameters you want. According to MetaQuotes' own MT5 documentation, the underlying template mechanism in MT5 works the same way conceptually as MT4's, it is only the file format and folder structure that differ.
Template File Management
Locating Template Files
Templates live as .tpl files in your MT4 data directory. Here is how to find them.
- In MT4, go to File, then Open Data Folder
- Navigate to the "templates" subfolder
- You will see all saved templates as .tpl files
Backing Up Templates
- Copy the entire templates folder to a backup location
- Store backups on cloud storage (Google Drive, Dropbox) for access from any device
- Include template backups in your regular trading setup documentation
Transferring Templates
- Copy .tpl files from one MT4 installation to another
- Works across different computers and VPS instances
- Templates are compatible across MT4 versions from the same broker
- Note: templates may not transfer perfectly between MT4 and MT5 due to format differences
Template Version Control for Multi-Account Traders
If you manage more than one live account, whether that is multiple funded prop accounts or several personal accounts at different brokers, treat your template folder the way you would treat a shared codebase. I keep a plain text changelog next to my templates folder that notes the date, which template changed, and why, for example "2026-08-14, GoldenViper_H4, updated lot sizing input after a deposit changed my account size." It takes thirty seconds to add an entry and it has saved me from applying an outdated risk setting to a chart more than once.
A few habits that scale well once you are past two or three accounts:
- Name templates with the account or purpose baked in, not just the timeframe, for example "GoldenViper_Prop1_H4" versus "GoldenViper_Personal_H4"
- Sync the templates folder through Dropbox, Google Drive, or a private Git repository so every VPS and desktop pulls the same source of truth
- Before applying any template to a live funded account, reread the input values once, since a synced folder means a mistake on one machine propagates everywhere
Common Template Problems and How to Fix Them
Templates are simple in concept but a handful of issues come up often enough to cover directly.
Template applies but the EA does not attach
This usually means the EA file itself (.ex4) is missing from the destination machine's Experts folder, or AutoTrading is disabled in the terminal (check the AutoTrading button in the toolbar). The template can only reference an EA that already exists locally; it does not carry the compiled EA file inside it.
Indicators show a "custom indicator" error after transfer
As covered earlier, the template stores indicator settings but not the compiled indicator file. Copy the actual .ex4 indicator file into the MQL4/Indicators folder on the destination machine first, then reapply the template.
Colors look different on a VPS or via remote desktop
Some remote desktop connections default to a reduced color depth, which can make chart colors appear washed out or slightly off from how they looked on your local machine. This is a display setting, not a template problem; adjusting the RDP session's color depth to True Color (24-bit or higher) usually resolves it.
The template includes leftover drawing objects
If trendlines, text labels, or Fibonacci tools show up on a chart after applying a template, they were present on the chart when you saved it. Remove them from the source chart, resave the template, and reapply.
A saved template stopped showing up in the menu
Confirm the .tpl file is actually in the templates subfolder of the correct data directory (File then Open Data Folder). It is easy to accidentally save a template into the wrong terminal's data folder if you run multiple MT4 installations side by side. The official MetaTrader 4 help documentation covers the data folder structure in more depth if you want the full breakdown of what lives where.
A quick word on vendor claims while we are on the topic of automated trading setup: plenty of EA sellers advertise templates or "pre-configured setups" as if they guarantee a specific outcome once applied. A template is a configuration convenience, nothing more. It does not change what an EA does under the hood, and no legitimate vendor should imply that a chart setup file affects win rate or removes risk. If a product's marketing leans on that kind of language, treat it as a red flag rather than a feature. The CFTC has published general investor guidance on evaluating automated trading system claims, and it is worth a skim before trusting any vendor's numbers that are not independently verifiable.
MT4 Templates vs Profiles
MT4 has two workspace-saving features that traders often confuse:
- Templates: Save settings for a single chart (colors, indicators, EA), applied one chart at a time.
- Profiles: Save the entire workspace layout: every open chart, its position, size, and template. One click restores your complete multi-chart setup.
I use both. Templates handle individual chart configurations, profiles handle my complete trading workspace. My "GoldenViper" profile opens four charts (XAUUSD H4, H1, M15, and D1), each with the correct template already applied. See our broker guide for platform-specific setup tips.
There is a third file type worth mentioning here since it gets confused with templates constantly: .set files. A .set file saves only an EA's input parameters, nothing about chart colors, indicators, or layout. Templates and .set files solve overlapping but distinct problems, templates for the full visual and functional chart state, .set files for portable EA parameter sets you might load through the Strategy Tester without touching anything else on the chart. If you are running backtests or comparing EA parameter sets, a .set file is usually the faster tool; for deploying a complete, ready-to-trade chart, a template does more of the work in one step. Investopedia's explainer on backtesting is a useful primer if the distinction between live parameter sets and historical testing is still new to you.
One more workflow worth knowing: if your trading day starts before you check the best times to trade gold, a profile that opens your analysis templates automatically saves a genuinely useful few minutes every single morning, since you are not rebuilding four charts from scratch before your first coffee.
Frequently Asked Questions About MT4 Templates
What do MT4 templates save?
MT4 templates save chart colors and style, attached indicators with their parameters, attached Expert Advisors with their input settings, chart timeframe, scale settings, and drawing objects. They skip the chart symbol and account information, which is why you can apply the same template across different instruments and accounts.
Where are MT4 template files stored?
MT4 templates are stored as .tpl files in the templates folder inside your MT4 data directory. Get there by going to File, then Open Data Folder, then the "templates" subfolder. Copy these files whenever you want to back up your templates or move them to another MT4 installation on a different computer or VPS.
Can I include an EA in my MT4 template?
Yes. Templates save the attached EA and all its input parameters, and applying the template to a new chart attaches the EA automatically with your saved settings. This comes in handy when deploying Golden Viper EA across multiple charts or reinstalling after a VPS migration.
What is the default.tpl template in MT4?
The default.tpl template is automatically applied to every new chart you open in MT4. Save your preferred setup (colors, indicators, chart type) as "default.tpl" and every new chart starts with those settings already configured, so you skip the repetitive manual setup.
How do I transfer MT4 templates to another computer?
Copy the .tpl files from your templates folder (File, Open Data Folder, templates) on the source computer into the same folder on the destination computer, then restart MT4 on the destination machine. The templates show up in the Template menu the next time you right-click a chart.
Do MT4 templates affect Expert Advisor backtesting results?
No. A template is a visual and configuration convenience for live charts; it has no bearing on how the Strategy Tester runs a backtest. Backtesting reads the EA's compiled logic and whatever input parameters you feed it (directly or via a .set file), not the chart's colors, indicators, or template file. Applying a different template to the same EA with the same inputs produces identical backtest results.
Can I safely share an MT4 template with another trader?
Yes, since templates never contain login credentials or account information. What you should check before sharing is whether the template includes an EA with input parameters you consider private, such as a risk setup tuned to your specific account size. If so, either strip the EA out before sharing or accept that the recipient will see those input values.
Does MT5 use the same template files as MT4?
No. Even though both use a .tpl extension, MT4 and MT5 templates are stored in separate data folders and are not directly interchangeable, largely because MT4 EAs (.ex4) and MT5 EAs (.ex5) are different compiled formats. If you trade on both platforms, you need to build and maintain a separate template for each.
Is there a limit to how many templates I can save in MT4?
There is no meaningful limit built into MT4 itself beyond available disk space, and .tpl files are small (typically a few kilobytes each). The practical limit is organizational: once you have more than a dozen or so, a consistent naming convention becomes essential, otherwise you end up scrolling through a long, hard-to-read list every time you right-click a chart.
Let Golden Viper EA trade gold for you
Automated XAUUSD trading for MT4 & MT5, verified live on Myfxbook. One-time $199, lifetime access.
Get Lifetime Access for $199