New: the Top 10 Non-Repainting MT4 Indicator Pack is free to download

92 free indicators for MetaTrader 4 & 5

3 EMA Crossover Indicator MT4

Free 3 EMA crossover indicator for MT4. Plots 8/21/55 EMAs with non-repainting buy/sell arrows and alerts. Settings, strategy and install guide. Free download, link emailed in seconds.

MT4Non-repaintingSignal & Arrow
Data Window3-ema-crossover-indicator-mt4
PlatformMT4 Build 600+
File.mq4 / .ex4 in .zip
Version1.0
Size4.3 KB
RepaintsNo
TypeSignal & Arrow
UpdatedNov 22, 2026
DownloadsNew listing
Download free (4.3 KB)
  • Enter your email, the download link arrives in seconds
  • Free bonus reports on the next page

Indicators are analysis tools, not trade signals. Forex trading on margin carries a high risk of loss. Test on a demo account first.

EURUSD · H4 · preview3 EMA Crossover Indicator MT4 v1.0
3 EMA Crossover Indicator MT4 on EURUSD H4Non-repainting
How it works →
Overview

The 3 EMA Crossover indicator for MT4 plots three exponential moving averages, 8, 21 and 55 by default, and prints a buy or sell arrow when the fast EMA crosses the middle EMA while both are on the same side of the slow EMA. Arrows are checked on closed candles only, so they do not repaint.

It is a free download that turns a popular manual setup, the “3 EMA” trend method, into something you can see at a glance and get alerts for. You keep full control of the periods, price source and colors, and nothing on the chart is hidden or recalculated after the fact.

What Is the 3 EMA Crossover Indicator?

A 3 EMA indicator for MT4 stacks a short, a medium and a long exponential moving average on the price chart. The long EMA tells you which side of the market you should favor. The two shorter EMAs tell you when momentum is turning in that direction. Traders have used versions of this idea for years, with pairs such as 5/13/50, 8/21/55 or 9/21/50. This version uses 8, 21 and 55 by default, three numbers from the Fibonacci sequence that many chartists like because they spread nicely across short, medium and longer horizons.

The difference between this tool and simply adding three Moving Average indicators to a chart is the signal logic. Instead of you scanning for crossovers by eye, the indicator marks the exact candle where the fast and middle EMAs crossed while the slow EMA confirmed the trend, and it can alert you when that happens.

How the Indicator Is Calculated

Each line is a standard exponential moving average, calculated with MetaTrader’s built-in EMA on the applied price you choose (close by default). An EMA weights recent prices more heavily than older ones, so it reacts faster than a simple moving average of the same length.

On every closed candle the code checks two conditions:

  • Buy arrow: on that candle the fast EMA is above the middle EMA, on the previous candle it was at or below it, and on that same candle both the fast and the middle EMA are above the slow EMA.
  • Sell arrow: the fast EMA is below the middle EMA after being at or above it on the previous candle, and both the fast and the middle EMA are below the slow EMA.

A crossover that happens on the “wrong” side of the slow EMA, for example the fast EMA crossing up through the middle EMA while both are still below the 55, is ignored. That filter is what separates this from a plain two-line crossover, which fires in both directions all through a range.

The arrow is drawn below the low (buy) or above the high (sell) of the signal candle, offset by half of the 14-period Average True Range by default, so it stays readable on any pair and timeframe.

Key Features

  • Three EMAs with editable periods, applied price, colors and line width.
  • Buy and sell arrows only when the fast/middle crossover agrees with the slow EMA trend filter.
  • Signals evaluated on closed candles only, so arrows do not appear and disappear during a candle.
  • Optional pop-up alert, sound and push notification to the MT4 mobile app, sent once per candle.
  • Arrow distance scales with ATR, so it works the same on EUR/USD M5 and gold H4.
  • Values for all three EMAs and both signals appear in the Data Window for exact readings.

How to Trade With the 3 EMA Crossover Indicator

Treat the arrows as a trend-continuation trigger, not as a stand-alone system. A practical way to use them:

Buy setup

  • Price is trading above the slow (55) EMA and the slow EMA is rising or at least flat.
  • A pullback pushes the fast EMA below the middle EMA, then a blue-over-orange cross prints a buy arrow when the candle closes.
  • Enter on the open of the next candle, or on a break of the arrow candle’s high if you want extra confirmation.
  • Place the stop below the most recent swing low or below the slow EMA, whichever gives the trade more room. The free position size calculator turns that stop distance into a lot size.

Sell setup

  • Price is below a falling slow EMA.
  • After a bounce, the fast EMA crosses back below the middle EMA and a sell arrow prints on the closed candle.
  • Stop above the latest swing high or the slow EMA.

Managing the trade

Common exits include a fixed reward-to-risk target, trailing the stop behind the middle EMA, or closing when the fast EMA crosses back over the middle EMA. When the three EMAs flatten and twist around each other, the market is ranging and crossover signals lose their edge. A filter such as the Choppiness Index indicator or the higher-timeframe trend can help you skip those periods.

Best Settings

The 8/21/55 defaults suit intraday charts from M15 to H1 and swing charts on H4 and D1. A few practical variations:

Use Fast / Middle / Slow Notes
Default, all-round 8 / 21 / 55 Balanced between speed and noise.
Faster intraday 5 / 13 / 50 More signals on M5 and M15, more false crosses.
Slower swing 10 / 30 / 100 Fewer, later signals on H4 and D1.

Keep the fast period well below the middle period and the middle well below the slow one. If the three values are too close together, the trend filter stops meaning much. Test any change on a demo account before using it live.

Does It Repaint?

No. The arrow logic runs only on candles that have already closed, starting from bar 1. The live candle (bar 0) never receives an arrow, so you will not see a signal appear mid-candle and then vanish. Once an arrow prints it stays in place. The EMA lines themselves update on the live candle as price moves, which is normal for any moving average, and they stop changing when the candle closes. Alerts fire once, right after the signal candle closes. Read more about why this matters in our guide to what repainting means, or browse other non-repainting indicators.

How to Install

Download the file, open MetaTrader 4, go to File > Open Data Folder > MQL4 > Indicators and copy the .mq4 file there. Restart MT4 or right-click Indicators in the Navigator and choose Refresh, then drag “3-ema-crossover-indicator-mt4” onto a chart. The full walkthrough is in how to install indicators in MT4. Custom indicators run on the desktop terminal only, not in the MT4 mobile apps, although push alerts can be sent to your phone.

Related Indicators

You can find more tools for this approach on the trend trading page. Moving average signals lag price by design, and no crossover rule works in every market. Trading on margin carries a high level of risk, so size positions carefully and practice on a demo account first.

3 EMA Crossover Indicator MT4 on an EURUSD H4 MT4 chart

3 EMA Crossover Indicator MT4 on a MetaTrader chart. Click to enlarge.

Repaint verdict: does not repaint. We read the source: every value is calculated on closed bars and never rewritten, so what you see in history is what you would have seen live.

Free pack

Get the Top 10 Non-Repainting Indicator Pack

Ten MT4 indicators that draw on closed bars only, in one zip with install notes for each.

Settings

Inputs, defaults and what they change

  • FastPeriod (default 8) — Period of the fast EMA.
  • MiddlePeriod (default 21) — Period of the middle EMA. Arrows fire when the fast EMA crosses this line.
  • SlowPeriod (default 55) — Period of the slow EMA, used as the trend filter.
  • EmaPrice (default PRICE_CLOSE) — Applied price for all three EMAs (close, open, median, typical, weighted and so on).
  • FastColor (default clrDodgerBlue) — Color of the fast EMA line.
  • MiddleColor (default clrOrange) — Color of the middle EMA line.
  • SlowColor (default clrMagenta) — Color of the slow EMA line.
  • LineWidth (default 2) — Width of the three EMA lines.
  • ShowArrows (default true) — Show or hide the buy and sell arrows.
  • BuyArrowColor (default clrLime) — Buy arrow color.
  • SellArrowColor (default clrRed) — Sell arrow color.
  • ArrowSize (default 2) — Arrow size from 1 to 5.
  • ArrowGapATR (default 0.5) — Distance between the arrow and the candle, as a multiple of ATR(14).
  • AlertsOn (default false) — Pop-up alert when a candle closes with a new arrow.
  • PushOn (default false) — Push notification to the MT4 mobile app (needs your MetaQuotes ID set under Tools > Options > Notifications).
  • SoundOn (default false) — Play a sound when a new arrow prints.
  • SoundFile (default alert.wav) — Sound file from the terminal Sounds folder.
Install

How to install it in MetaTrader 4

  1. Step 1Download and unzip

    Enter your email, open the download link we send you and extract the .mq4 / .ex4 file from the zip.

  2. Step 2Open the data folder

    In MetaTrader, go to File → Open Data Folder.

  3. Step 3Copy into Indicators

    Place the file in MQL4 → Indicators, then restart MetaTrader or refresh the Navigator panel.

  4. Step 4Attach it to a chart

    Find it under Navigator → Indicators and drag it onto any chart.

First time installing an indicator? Watch the 75-second video or follow the screenshots in our MT4 install guide: every click in MetaTrader, plus fixes for an indicator that won't show up.

Free forex calculators
FAQ

3 EMA Crossover Indicator MT4 questions

There is no single best setting. 8/21/55 is a balanced default for M15 to H4 charts, 5/13/50 reacts faster on lower timeframes, and 10/30/100 suits slower swing trading. Whatever you choose, keep the three periods well spread apart and test the change on a demo account.

No. Arrows are only calculated on closed candles, so an arrow never appears on the live candle and never disappears later. Only the EMA lines on the current candle move with price until it closes.

The slow EMA defines the trend, and the fast and middle EMAs time the entry. A buy signal needs the fast EMA to cross above the middle EMA while both are above the slow EMA. A sell needs the opposite. Stops usually go beyond the latest swing point or the slow EMA.

Yes. Set PushOn to true and enter your MetaQuotes ID in MT4 under Tools > Options > Notifications. The indicator itself must keep running on the desktop terminal, because the MT4 mobile app cannot run custom indicators.

The indicator ignores crossovers that go against the slow EMA. If the fast EMA crosses above the middle EMA while both are still below the slow EMA, no buy arrow is drawn. This filter cuts many signals that would occur inside ranges.

It works on any timeframe, but moving average crossovers tend to be cleaner on M15 and higher, where there is less noise. Many traders confirm the direction on a higher timeframe, such as H4, and take arrows on a lower one, such as M15 or H1.

3 EMA Crossover Indicator MT4
Size
4.3 KB
Version
1.0
Repaints
No
Download free
Free packTop 10 Non-Repainting Indicators

Ten closed-bar MT4 indicators in one zip.

Get the pack

3 EMA Crossover Indicator MT4Free · 4.3 KB

Download

Where should we email your download link?

Use an email you can check right now: the download link goes straight to this inbox.