A trader reads about an indicator that promises to mark exactly the levels that matter, downloads the file, drops it into the terminal — and nothing visible goes wrong, which is precisely the problem. A custom indicator is a program, and a program from an unknown source runs on your computer inside the terminal: it can read and write within the terminal’s own folders, and — if DLL use has ever been allowed — reach further, whether or not it draws anything on the chart. This article shows how to install a custom indicator, check that it does what it claims, and remove it cleanly — with the safety rule first, before any installation step — so that by the end you can tell a checked indicator from an unchecked one, and remove either in under a minute.
Prerequisite: “Getting Started with MetaTrader 5: Install, Log In and Find Your Way Around” (Beginner Batch 2) — the terminal layout, the Navigator, and where the terminal’s folders live. Pairs with “Expert Advisors (EAs) Explained: What an EA Is, and What It Is Not” (EA Beginner batch), which explains the related question of what an automated program can and cannot do.
Key points
- A custom indicator is a program file that draws on a chart. Built-in indicators ship with MT5; custom ones are added by the trader, and the difference that matters is where the file came from.
- Never run a file from an unknown source. An indicator is code, not a picture: it runs on your computer, and a file from a stranger can do things you did not ask for. Only install files whose origin you can check.
- Installation is a short procedure: place the file in the terminal’s Indicators folder, refresh the Navigator, drag the indicator onto a chart, and set its inputs.
- A new indicator must be checked against something known: its readings compared with a built-in indicator, and its past values checked for repainting — values on closed bars that change after the fact.
- Removal is part of the procedure, not an afterthought: take it off the chart, delete the file, and confirm the chart is clean. An indicator that is no longer used but still installed is still code on your computer.
Start trading with Exness
You can open an account here:
In plain words
A custom indicator is a program, not a picture, and a program from an unknown source runs on your computer — so the rule comes before any installation step: only install files whose origin you can check, meaning source code you can read, a named author with documentation, or the platform’s own examples, and delete anything else. Installation itself is six steps: open the Indicators folder, place the file, compile it if it is a source file, refresh the Navigator, drag it onto a chart, and save the setup as a template. Before it is trusted, a new indicator is checked against a built-in equivalent and tested for repainting — values on closed bars changing after the fact. In the worked example the custom band’s half-width measured 120 pips against an expected 120 pips (1.5 times the built-in 14-period ATR of 80 pips) and its band values were unchanged after ten new bars, but a signal arrow moved from 1.0690 to 1.0715, a change of 25 pips — so the verdict was split: the bands could be used as a visual aid, and the arrows could never be used to judge past performance. Removal is part of the procedure too — off the chart, out of the template, out of the folder, and recorded with its reason — because an indicator that is no longer used but still installed is still code on your computer.
1. What a custom indicator is, and what it is not
An indicator is a program that reads price data and draws something on a chart: a line, a band, a histogram, a set of levels. MT5 ships with a set of built-in indicators — moving averages, ATR, MACD, RSI and others — which are installed with the terminal, documented in the platform’s help, and maintained by the platform’s maker. A custom indicator is any indicator that did not ship with the terminal: one the trader wrote, one a colleague shared, one downloaded from a forum or a marketplace, one bought from a seller. The file arrives in one of two forms: a source file (ending in .mq5), which is human-readable code, or a compiled file (ending in .ex5), which is machine code produced from a source file and not readable without the source.
The distinction that matters most is not source against compiled; it is known against unknown. A built-in indicator’s behaviour is documented and its maker is known. A custom indicator’s behaviour is whatever its code says, and the only ways to know what its code says are to read the source, to test the compiled file’s behaviour carefully, or to trust the person who gave it to you. Two of those three are work; the third is trust, and trust is the thing this article asks the reader to spend carefully.
2. The safety rule: only files whose origin you can check
Do not install or run an indicator file from an unknown source. That sentence is the whole of this section’s rule, and the rest of the section is what it means in practice.
An unknown source is any file whose maker you cannot identify and whose contents you cannot check: a download link in a forum post by a stranger, a file sent by direct message, a “free indicator” attached to a video description, a file from a site that offers no author name, no documentation and no way to ask what the file does. The promise attached to such files — a level marker, a signal arrow, a “90% accurate” claim — is not evidence; it is marketing, and marketing is the cheapest thing to attach to a file. A file that arrives with a plausible story and no verifiable maker is an unknown source, whatever the story says.
A checkable origin means at least one of the following: the source code is provided and can be read, so the trader — or someone they trust to read code — can see what the program does; the file comes from a named author or publisher with a public track record and documentation that describes the indicator’s method; or the file comes from the platform’s own built-in examples or official code library, where the maker is the platform itself. Where none of those holds, the file stays uninstalled. There is no shortage of indicators in the world, and no single indicator is worth running unchecked code for.
Four practical checks apply before any installation, and they take minutes:
- Read the documentation first. A legitimate indicator is described somewhere: what it calculates, what its inputs mean, what it draws and what it does not do. No description, no installation.
- Prefer source files over compiled-only files. A .mq5 source file can be opened and read in the MetaEditor; a compiled-only .ex5 cannot be read, so its behaviour must be inferred from testing alone. Where both are offered, take the source.
- Keep new files out of the live setup until they are checked. Install and test on a demo terminal, or on a separate terminal installation used for testing, before the file ever touches the terminal that holds real positions. The demo account is not only for practising trades; it is for practising with files.
- Scan the file, and keep the terminal’s protections on. Run the computer’s own security software over any downloaded file before opening it, and check a source file by compiling it in the MetaEditor (Section 3, Step 3) — and do not disable a protection setting because a file asks you to. A file that needs a protection switched off in order to run is a file that has told you what it is.
If a file fails any of these checks, the correct response is to delete it and move on. The cost of deleting a promising file is the loss of a promise; the cost of running an unchecked file is unknown, and that asymmetry is the whole argument.
3. Installing a custom indicator, step by step
With a file whose origin is checked, installation is a short procedure. It is done on a demo terminal first, exactly as described, and only moved to the live terminal after the checks in Section 4 pass.
Step 1 — Open the Indicators folder. In the terminal, open the File menu and choose “Open Data Folder”. Inside it, open the folder named MQL5, then the folder inside it named Indicators. This is where custom indicator files live. Built-in indicators are not stored here; this folder holds only what the trader has added.
Step 2 — Place the file. Copy the indicator file — the .mq5 source file, or the .ex5 compiled file — into the Indicators folder. If the file arrived inside a compressed archive, extract it first and copy only the indicator file itself, not the archive and not any other file that came with it. If the archive contains an installer program rather than an indicator file, stop: an installer is a different kind of program, and it is outside this article’s procedure.
Step 3 — Compile, if the file is a source file. A .mq5 file must be compiled into a .ex5 file before the terminal can run it. Open the source file in the MetaEditor (double-clicking it in the terminal’s Navigator opens it there), and choose Compile. If the compiler reports errors, the file does not install: errors mean the code as supplied does not build, and a file that does not build is not repaired by guessing. Note the errors, and go back to the file’s author or documentation.
Step 4 — Refresh the Navigator. In the terminal’s Navigator panel, right-click the Indicators section and choose Refresh. The new indicator’s name should appear in the list. If it does not appear, the file is in the wrong folder, or the compilation failed, or the terminal needs restarting — check the folder first, because that is the common cause.
Step 5 — Drag it onto a chart. Drag the indicator’s name from the Navigator onto an open chart. A settings window appears, showing the indicator’s inputs — its parameters, its colours, the levels it draws. Set the inputs as the documentation describes, and leave any input you do not understand at its default value until you do understand it. Confirm, and the indicator draws on the chart.
Step 6 — Save the setup. If the indicator belongs in a regular workflow, save the chart as a template (right-click the chart, choose Template, then Save Template) so the indicator and its settings can be reapplied to another chart in one step. A template is also the record of which indicators were on the chart, which matters when something later goes wrong and the question is what changed.
4. Checking it: does it do what it claims?
An installed indicator is not yet a trusted indicator. Two checks, both done on the demo terminal, decide whether it earns a place in the workflow.
Check one — compare it against something known. Run the custom indicator beside a built-in indicator that measures the same thing, and compare their readings. A custom volatility band should agree, in broad terms, with the built-in ATR for the same period; a custom moving-average variant should track the built-in moving average with the same period. Agreement in broad terms is the pass mark; exact agreement is not expected, because the custom indicator may calculate its version differently, and the documentation should say how. A custom indicator whose readings bear no relation to the built-in equivalent, with no documented reason, is an indicator whose method is unknown — and an unknown method is not used.
Check two — the repaint test. Some indicators change their past values after the fact: a signal arrow that appeared on a closed bar moves or vanishes when new bars arrive. That behaviour is called repainting, and it makes backtests and screenshots of the indicator meaningless, because the history it shows is not the history it showed at the time. The test is simple: note the indicator’s values on the most recent closed bars — write them down, or take a screenshot — then let ten new bars form, and compare. Values on bars that were already closed must be unchanged. If they changed, the indicator repaints, and any claim made from its past signals is unreliable. The indicator may still be usable as a live visual aid, but it must never be used to judge how it “would have performed”, and that limitation must be written down with its name.
A third check is performance: an indicator that recalculates heavily on every tick can slow the terminal. If the terminal becomes noticeably slower with the indicator on the chart, and faster with it removed, the indicator is too heavy for the setup, whatever its readings say.
5. A worked example: checking a custom volatility band (illustrative)
An illustrative check. The custom indicator is a volatility band built around a moving average: it draws a middle line (a 20-period moving average) and an upper and lower line set a fixed multiple of ATR away from it. The documentation says the band’s half-width is 1.5 times the 14-period ATR. All figures are invented.
Step 1 — Read the built-in ATR. On the EURUSD daily chart, the built-in 14-period ATR reads 0.0080, which is 80 pips. Expected half-width = 1.5 × 80 pips = 120 pips, or 0.0120 in price terms.
Step 2 — Measure the custom band. The middle line reads 1.0730. The upper line reads 1.0850. Measured half-width = 1.0850 − 1.0730 = 0.0120, or 120 pips. The lower line reads 1.0610: 1.0730 − 1.0610 = 0.0120, or 120 pips. Both sides agree with the expected 120 pips. Check one passes: the custom indicator’s width matches the documented method, computed from the built-in ATR.
Step 3 — The repaint test. At the close of the bar where the upper line read 1.0850, the trader writes the figure down. Ten new bars form. The upper line’s value on that same, now-old bar is read again: it still reads 1.0850. Change = 1.0850 − 1.0850 = 0.0000. Check two passes for that bar: the closed bar’s value did not move.
Step 4 — A second bar, for contrast. The trader also notes a signal arrow the indicator drew on a bar two days earlier, at a price of 1.0690. After the ten new bars, the arrow on that bar has moved to 1.0715. Change = 1.0715 − 1.0690 = 0.0025, or 25 pips. The band values do not repaint, but the arrows do. The verdict is therefore split, and it is written down as a split verdict: the bands may be used as a visual aid; the arrows must never be used to judge past performance, because the past they show is not the past they showed at the time.
Step 5 — The count. Two checks, four measurements, one split verdict. The indicator is kept for its bands, with the arrow limitation recorded in the template’s name and in the journal, so that a later review does not mistake the arrows’ history for evidence.
The example’s lesson is in the split verdict: checking is not a pass-or-fail stamp on the whole file. It is a measurement per feature, and a feature that fails its check is restricted or removed on its own, while the features that pass continue to be used — with the restriction written down where it will be seen.
6. Removing an indicator, and the removal checklist
Removal is a procedure, not a deletion done in passing, because an indicator leaves traces: on the chart, in the template, in the folder, and sometimes in the terminal’s settings.
- Off the chart: right-click the chart, choose “Indicators List”, select the indicator, and choose Delete. Confirm the chart no longer shows its lines or objects — open the chart’s Objects List (right-click → Objects List) if anything remains, and remove the leftover objects by name.
- Out of the template: if the chart was saved as a template with the indicator on it, update the template (save it again without the indicator) or delete the template. A template that silently reinstalls a removed indicator is the commonest way a removed indicator comes back.
- Out of the folder: delete the indicator’s file from the MQL5/Indicators folder — both the .ex5 and the .mq5, if both are there. Restarting the terminal is not needed to remove the files — deleting both files is the removal — but confirm the indicator no longer appears in the Navigator after a Refresh, so that a stale listing is not mistaken for a file still installed.
- Out of the notes: record the removal in the journal or the settings log: the indicator’s name, the date, and the reason (repainting arrows, too slow, no longer used). A removal without a reason is a removal that will be undone by curiosity in a month’s time.
- Confirm the chart is clean: open a fresh chart of the same symbol and compare it with the cleaned chart. If the fresh chart and the cleaned chart show the same indicators, the removal is complete; if they differ, something was left behind.
Summary — what to take away
- A custom indicator is a program, and a program from an unknown source runs on your computer. Only install files whose origin you can check — source code you can read, a named author with documentation, or the platform’s own examples.
- Installation is six steps: open the Indicators folder, place the file, compile a source file, refresh the Navigator, drag it onto a chart, and save the setup as a template.
- A new indicator is checked against a built-in equivalent and tested for repainting: values on closed bars must not change. In the worked example, the band’s half-width measured 120 pips against an expected 120 pips, and its arrows moved 25 pips after the fact — a split verdict, recorded as such.
- Removal is a procedure: off the chart, out of the template, out of the folder, and recorded with its reason. An indicator that is no longer used but still installed is still code on your computer.
- If a file fails any safety check, delete it and move on. The cost of deleting a promising file is the loss of a promise; the cost of running an unchecked file is unknown.
Next reads
- Getting Started with MetaTrader 5: Install, Log In and Find Your Way Around (Beginner Batch 2) — the terminal layout, Navigator and data folder this article builds on.
- Expert Advisors (EAs) Explained: What an EA Is, and What It Is Not (EA Beginner batch) — the related question of what an automated program can and cannot do, and how to judge claims made for one.
- MT5 Strategy Tester, First Steps: Testing an Idea Without Code (this batch, Article 1) — the tester, which is where a checked indicator’s past behaviour can be examined properly instead of judged from repainted screenshots.
FAQ
Q: A forum post offers a free indicator that “never loses”. Should I try it?
A: No. A file from a stranger, with a promise attached and no verifiable maker, no documentation and no source code, is the definition of an unknown source in this article. A promise is not evidence, and “never loses” is not a claim any honest indicator can make. Delete the file and move on; there is no shortage of indicators whose origin can be checked.
Q: What is the difference between a .mq5 file and a .ex5 file?
A: A .mq5 file is the indicator’s source code, written in the MQL5 language, which can be opened and read in the MetaEditor. A .ex5 file is the compiled version, produced from the source, which the terminal runs but which cannot be read. Where both are offered, take the source: it is the version whose behaviour can be checked by reading, not only by testing.
Q: My indicator’s arrows look perfect on old charts. Can I trust them?
A: Only after the repaint test. Note an arrow’s price on a closed bar, let ten new bars form, and read the same bar again: if the arrow moved, the indicator repaints, and its history is not evidence of past performance. In the worked example, an arrow moved 25 pips after the fact while the bands did not repaint — the same file can be trustworthy in one feature and unreliable in another.
Q: The compiler reports errors when I try to compile a .mq5 file. What do I do?
A: Stop the installation. Errors mean the code as supplied does not build, and a file that does not build is not repaired by guessing at the code. Note the errors, go back to the file’s author or documentation, and do not install a “fixed” version you made yourself unless you understand every change you made.
Q: I removed an indicator, but it keeps coming back when I open a chart. Why?
A: Almost certainly a template: the chart was saved as a template with the indicator on it, and opening a chart from that template reinstalls it. Save the template again without the indicator, or delete the template, and then confirm the removal by opening a fresh chart and comparing it with the cleaned one.
Sources: MetaTrader 5 Help page “Custom Indicators” (MetaQuotes) for installing, checking and removing custom indicators; MQL5 Reference, “Custom Indicators” and “MetaEditor”, for the source/compiled file distinction and compiling. Checked: 22 November 2026. The worked example in Section 5 is illustrative, with invented figures.
This article is information only and is not investment advice. Forex and CFD trading involves a substantial risk of loss, including the possibility of losing more than you deposited with some account types and jurisdictions. Practise on a demo account until every procedure in this batch is familiar. Make sure you fully understand how leveraged products work before you consider trading with real money.
Disclosure: Broker Cost Check is reader-supported. If you open an account through a partner link on this page and trade, Exness pays us a share of the revenue from your trading activity under its partner programme. You pay us nothing: our payment comes from Exness, out of that revenue. How we make money: How Broker Cost Check works — method and how we make money
Sources
Checking and corrections: how we check figures and handle corrections is set out on our method page. The official pages for the terms covered on this page are listed under Sources below.
Official Exness pages for the terms covered on this page:
- Exness — MetaTrader 5 — the official Exness page on MetaTrader 5.
- Exness Help Centre — Available trading platforms — the official guide to the available trading platforms.

Leave a Reply