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

98 free indicators for MetaTrader 4 & 5

SuperTrend Indicator MT4

Free SuperTrend indicator for MT4. ATR trailing trend line with buy/sell arrows and alerts on closed-candle flips. Settings, strategy and install guide. Free download, link emailed in seconds.

MT4Non-repaintingTrend
Data Windowsupertrend-indicator-mt4
PlatformMT4 Build 600+
File.mq4 / .ex4 in .zip
Version1.0
Size4.1 KB
RepaintsNo
TypeTrend
UpdatedNov 22, 2026
DownloadsNew listing
Download free (4.1 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 · previewSuperTrend Indicator MT4 v1.0
SuperTrend Indicator MT4 on EURUSD H4Non-repainting
How it works →
Overview

The SuperTrend indicator for MT4 plots a single trailing line that sits below price in an uptrend and above price in a downtrend, switching sides when a candle closes through it. The line is green while the trend is up and red while it is down, and optional arrows and alerts mark each flip on a closed candle.

SuperTrend is popular because it does two jobs at once: it tells you the current trend direction, and it gives you a volatility-based trailing stop. MetaTrader 4 does not include it, so this free indicator adds it with clean code, closed-candle arrows and mobile push alerts.

What Is the SuperTrend Indicator?

SuperTrend is built on the Average True Range (ATR), a measure of how much price typically moves per bar. It places a band a set number of ATRs above and below the middle of each candle. In an uptrend, only the lower band is shown and it can only move up. In a downtrend, only the upper band is shown and it can only move down. When price closes on the wrong side of the active band, the trend flips and the line jumps to the other side.

How it is calculated

  1. For each bar, the midpoint is (high + low) / 2 and the ATR uses ATRPeriod bars.
  2. Basic upper band = midpoint + Multiplier × ATR. Basic lower band = midpoint − Multiplier × ATR.
  3. The final upper band only moves down: it takes the new basic upper band if that is lower than the previous final upper band, or if the previous close was above the previous final upper band. Otherwise it keeps its previous value.
  4. The final lower band only moves up, by the mirror rule.
  5. The trend flips from up to down when a close falls below the previous bar’s final lower band, and from down to up when a close rises above the previous bar’s final upper band.
  6. While the trend is up the indicator draws the final lower band in UpColor; while it is down it draws the final upper band in DownColor.

Buy and sell arrows, when ShowArrows is on, are drawn half an ATR below the low or above the high of the candle where the flip happened. Arrows only appear on closed candles.

Key Features

  • Two-color trend line: green under price in uptrends, red over price in downtrends.
  • Adjustable ATR period and multiplier.
  • Buy and sell arrows on closed-candle flips only, so they never vanish.
  • Pop-up and mobile push alerts once per flip, after the candle closes.
  • Line and arrow values are buffers, readable in the Data Window or through iCustom in an Expert Advisor.

How to Trade With the SuperTrend Indicator

Trend-following entries

  1. Buy when a closed candle flips the line to green (a buy arrow appears). Sell when a closed candle flips it to red.
  2. Filter with a higher timeframe: for example, take H1 buy flips only while the H4 SuperTrend is green.
  3. Place the initial stop just beyond the SuperTrend line, with room for the spread.
  4. Trail the stop with the line as it moves. Exit when the trend flips the other way.

Pullback entries

Instead of entering on the flip, some traders wait for price to pull back toward a green line in an uptrend and enter when a bullish candle closes off it. The stop goes below the line, which keeps the risk smaller than an entry far from the line. The same applies in reverse for downtrends.

Reading the line between signals

The line carries information even when it is not flipping. A green line that keeps stepping up as price climbs shows a trend that is still extending. A line that stays flat for many bars means price has stopped making progress and the band is no longer being pulled along, which often comes before either a flip or a fresh push. A large gap between price and the line means your trailing stop is far away; some traders take partial profit there instead of giving back the whole move if the trend flips.

Avoiding choppy markets

Like any trend-following tool, SuperTrend gives back money when the market goes sideways and the line flips repeatedly. A trend-strength filter such as the Advanced ADX indicator or the Choppiness Index can keep you out of those periods. Smoothed candles from the Heiken Ashi Smoothed indicator are another way to confirm direction before acting on a flip.

Best Settings

  • Default (10, 3.0): the widely used starting point, suited to H1 to D1 swing trading.
  • Day trading (M15 to H1): ATRPeriod 10 with Multiplier 2.0 to 2.5 for quicker flips and tighter stops.
  • Longer trends: raise Multiplier to 4.0 or more to stay in moves longer, accepting larger stops.
  • Position sizing: the stop distance to the line changes with volatility, so calculate lot size per trade with the position size calculator.

A lower multiplier means more signals and more false flips; a higher one means fewer signals and later exits. Test changes on a demo account before using them live.

Does It Repaint?

No. Arrows and alerts are non-repainting: they are only created after a candle has closed, and closed bars are never recalculated. The line on the current, still-forming candle is live: if price crosses the band during the bar, the line can switch color on that bar and switch back before it closes. That is normal current-bar behavior and the reason arrows wait for the close. If you want to understand the difference, read our explanation of what repainting means.

How to Install

Download the free file, then in MetaTrader 4 open File > Open Data Folder > MQL4 > Indicators and copy supertrend-indicator-mt4.mq4 into that folder. Restart the terminal or right-click Indicators in the Navigator and choose Refresh, and the indicator compiles and appears under Indicators > Custom. Drag it onto a chart and adjust the inputs in the window that opens. The full walkthrough, with fixes for common problems, is in our guide on how to install indicators in MT4. This is an MT4 file, so it will not load in MetaTrader 5 (the two platforms use different file formats), and the MT4 mobile apps cannot run custom indicators at all, as explained in our MT4 mobile indicators guide.

Related Indicators

Find more in the trend indicators section.

Trading on margin carries a high level of risk, so test any new tool on a demo account before you use it with real money.

SuperTrend Indicator MT4 on an EURUSD H4 MT4 chart

SuperTrend 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

  • ATRPeriod (default 10) — Period of the Average True Range used to size the bands.
  • Multiplier (default 3.0) — How many ATRs the bands sit away from the bar midpoint. Higher values give a wider, slower line.
  • ShowArrows (default true) — Draw a buy arrow below the candle (or a sell arrow above it) on each closed candle where the trend flips.
  • AlertOnFlip (default false) — Pop-up alert when the candle that just closed flipped the trend.
  • PushNotification (default false) — Send the same flip message as a push notification to the MT4 mobile app.
  • UpColor (default LimeGreen) — Color of the uptrend line and buy arrows.
  • DownColor (default Red) — Color of the downtrend line and sell arrows.
  • LineWidth (default 2) — Width of the SuperTrend line.
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

SuperTrend Indicator MT4 questions

ATR period 10 with a multiplier of 3 is the most common starting point and is the default here. A lower multiplier, such as 2, reacts faster on intraday charts but flips more often. Test settings on your own pair and timeframe before trading them.

No. Arrows and alerts appear only after a candle closes and never change afterwards. The line on the current candle can switch color while the bar is still forming, which is why the signal is taken only on the close.

It places bands a multiple of the Average True Range above and below each candle’s midpoint. The bands trail price and only move in the trend’s direction. The trend flips when a candle closes beyond the previous bar’s active band.

It can be used on M5 and M15 with a smaller multiplier, but very low timeframes produce many flips in quiet sessions. Most traders get cleaner results on M15 and above, and use a trend filter to avoid sideways markets.

Yes. Many traders place the stop just beyond the line and trail it as the line moves. Because the line is based on ATR, the stop automatically widens in volatile markets and tightens in quiet ones.

Set PushNotification to true and enter your MetaQuotes ID under Tools > Options > Notifications in desktop MT4. The terminal must stay running on a computer or VPS, because the MT4 mobile app cannot run custom indicators.

SuperTrend Indicator MT4
Size
4.1 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

SuperTrend Indicator MT4Free · 4.1 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.