Risk warning: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure
Education11 min read

Supertrend indicator guide: settings, formula and strategies for forex and gold

Learn the Supertrend indicator: how it works, the ATR formula, best settings (10, 3), adding it to MT5 as a custom indicator and strategy examples.

EUR/USD H4 chart with a custom Supertrend indicator flipping from red to green at 1.1612 above the 200-period moving average (example prices)
On this page
  1. What is the Supertrend indicator?
  2. How the Supertrend indicator is calculated
  3. Step 1: ATR
  4. Step 2: basic bands
  5. Step 3: final bands
  6. Step 4: the Supertrend line
  7. Worked example
  8. Best Supertrend settings
  9. How to add the Supertrend indicator on MT5 (custom indicator)
  10. Supertrend strategy 1: simple flip entries with a trend filter
  11. Rules for a buy
  12. Example: EUR/USD (H4)
  13. Supertrend strategy 2: pullback entries to the Supertrend line
  14. Example: gold (H1) downtrend
  15. Supertrend strategy 3: multi-timeframe Supertrend
  16. Using Supertrend as a trailing stop
  17. Supertrend vs Parabolic SAR vs moving averages
  18. Best timeframes for the Supertrend indicator
  19. Common Supertrend mistakes
  20. Practise the Supertrend indicator with Xellion

The Supertrend indicator is one of the most popular trend tools among Indian traders. It draws a single line on the price chart: green below price in an uptrend, red above price in a downtrend. When price closes through the line, it flips colour and side, giving a simple bullish or bearish signal. Because the line moves with volatility, it also works as a trailing stop.

One important point before you start: Supertrend is not a standard MetaTrader 5 indicator. It does not appear in MT5's built-in indicator list. To use it on MT5 you need to add a custom version. This guide explains how the Supertrend indicator works, the formula, the best Supertrend settings, how to add it to MT5 as a custom indicator, and three Supertrend strategy examples on forex and gold. All prices in this article are example prices.

What is the Supertrend indicator?

The Supertrend indicator is a trend-following overlay built from the average true range (ATR). It is widely credited to French trader Olivier Seban. The line sits a set distance away from price, and that distance is based on recent volatility:

  • In an uptrend, the line sits below price and is usually coloured green. It acts as dynamic support and a trailing stop for buyers.
  • In a downtrend, the line sits above price and is usually coloured red. It acts as dynamic resistance and a trailing stop for sellers.
  • When a candle closes on the other side of the line, the trend flips.
Supertrend stateLine positionColour (typical)Signal
UptrendBelow priceGreenHold or look for buys
DowntrendAbove priceRedHold or look for sells
Flip upMoves from above to belowRed → greenBullish signal
Flip downMoves from below to aboveGreen → redBearish signal

The appeal is simplicity: one line, one colour, one decision.

How the Supertrend indicator is calculated

You do not need to calculate Supertrend by hand, but knowing the formula helps you choose settings.

Step 1: ATR

The indicator first calculates the average true range over a set period, usually 10. ATR measures how much price typically moves per candle.

Step 2: basic bands

Using the middle of each candle, (high + low) ÷ 2:

  • Basic upper band = (high + low) ÷ 2 + multiplier × ATR
  • Basic lower band = (high + low) ÷ 2 − multiplier × ATR

The usual multiplier is 3.

Step 3: final bands

The bands only move in one direction while the trend holds:

  • In an uptrend, the lower band can rise but cannot fall. If the new basic lower band is lower than the previous one, the previous value is kept (unless the previous close was below it).
  • In a downtrend, the upper band can fall but cannot rise.

This is what makes Supertrend behave like a ratchet or trailing stop.

Step 4: the Supertrend line

  • While the trend is up, Supertrend equals the final lower band.
  • While the trend is down, Supertrend equals the final upper band.
  • If price closes above the upper band, the trend flips up. If price closes below the lower band, the trend flips down.

Worked example

All figures are example figures.

InputValue
EUR/USD H4 high1.1650
H4 low1.1620
Midpoint1.1635
ATR (10)0.0030 (30 pips)
Multiplier3
Basic lower band1.1635 − 3 × 0.0030 = 1.1545
Basic upper band1.1635 + 3 × 0.0030 = 1.1725

If EUR/USD is in an uptrend, Supertrend sits at about 1.1545, 90 pips below the midpoint. Price would need to close below that level to flip the trend down.

Best Supertrend settings

The Supertrend settings are just two numbers: the ATR period and the multiplier.

SettingATR periodMultiplierBehaviourTypical use
Fast72Flips often, tight trailing stopShort intraday moves, more noise
Standard103Balanced; most common defaultMost traders, most timeframes
Slow14–203–4Few flips, wide stopSwing trading on H4 and D1

General rules:

  • A higher multiplier puts the line further from price, so it flips less and gives fewer false signals, but entries and exits come later.
  • A lower multiplier keeps the line closer, so signals come earlier but more of them are whipsaws in ranges.
  • The ATR period mostly affects how smoothly the distance changes.

Start with 10 and 3. If you get many false flips in your market, raise the multiplier to 3.5 or 4 before changing anything else. Test any change on a demo account over a long sample, not just a few recent trades.

How to add the Supertrend indicator on MT5 (custom indicator)

Supertrend is not included in MetaTrader 5's standard indicators. If you open Insert → Indicators → Trend, you will see tools like Moving Average, Parabolic SAR and ADX, but not Supertrend. To use it, you need a custom indicator file (.mq5 source or .ex5 compiled). Many developers share custom Supertrend versions, for example in the MQL5 community, and some traders code their own.

General steps for adding a custom indicator in MT5 on a PC:

  1. Get the file from a source you trust. Read reviews and check the code if you can. Custom files are written by third parties, not by MetaQuotes or Xellion.
  2. In MT5, go to File → Open Data Folder.
  3. Open MQL5 → Indicators and copy the file there.
  4. Back in MT5, right-click Indicators in the Navigator window and choose Refresh (or restart MT5).
  5. Find the indicator under Navigator → Indicators and drag it onto your chart.
  6. In the Inputs tab, set the ATR period (for example 10) and multiplier (for example 3). Click OK.
  7. Save the chart as a template so you do not have to repeat this.

A few things to know:

  • Mobile and web: custom indicators generally run on the MT5 desktop terminal. The MT5 mobile apps and web platforms use their built-in indicator lists, so you may not see Supertrend there. A common workaround is to analyse on desktop and use the mobile or web platform to follow positions.
  • Versions differ: different custom Supertrend files may use slightly different ATR smoothing, so lines can vary a little between versions.
  • Built-in alternatives: if you prefer to stay with standard MT5 tools, the Parabolic SAR indicator is a built-in trailing-stop style indicator, and the ATR indicator can be used to place a volatility-based stop by hand.

If you are new to the platform, see our MT5 download, login and setup guide.

Supertrend strategy 1: simple flip entries with a trend filter

The basic Supertrend strategy trades the flips, but adding a trend filter removes many false signals.

Rules for a buy

  1. Price is above the 200-period moving average on the same chart (uptrend filter). See moving average trading.
  2. Supertrend flips from red to green.
  3. Enter on the close of the flip candle.
  4. Place the stop-loss level just below the Supertrend line.
  5. Exit when Supertrend flips back to red, or trail the stop along the line.

Reverse the rules for a sell, with price below the 200-period moving average.

Example: EUR/USD (H4)

All prices are example prices.

  • EUR/USD is above its 200-period moving average on H4.
  • After a pullback, an H4 candle closes at 1.1612, above the red Supertrend line. The line flips green and moves to 1.1568.
ItemLevelCalculation
Entry1.1612Close of the flip candle
Stop-loss level1.15635 pips below the Supertrend line at 1.1568
Planned loss49 pips1.1612 – 1.1563
ExitTrailingExit on a close below the rising green line

Over the next several days the green line rises to 1.1655. If price then closes below it, the trade exits with the trailing stop well above entry. The filter matters: earlier red-to-green flips below the 200-period average would have been ignored.

Supertrend strategy 2: pullback entries to the Supertrend line

In strong trends, price often pulls back towards the Supertrend line without closing through it.

  1. Supertrend is green (uptrend) and has been for several candles.
  2. Price pulls back close to the line.
  3. A bullish reversal candle forms near the line, such as a pin bar or bullish engulfing candle. See our candlestick patterns guide.
  4. Enter on the close, with the stop below the line.

Example: gold (H1) downtrend

All prices are example prices.

  • Gold (XAU/USD) on H1 has a red Supertrend line above price.
  • During the London–New York overlap, around 7:00 pm IST in winter, price pulls back to $4,041, just under the red line at $4,046, and prints a bearish engulfing candle closing at $4,036.
ItemLevelCalculation
Entry$4,036Close of the engulfing candle
Stop-loss level$4,050Above the Supertrend line at $4,046
Planned loss per ounce$14$4,050 – $4,036
Target$4,0082 × stop distance, or trail with the line

On most MT5 accounts, 1 lot of gold is 100 ounces, so at 0.01 lot each $1 move is worth about $1. A $14 stop at 0.01 lot is a planned loss of about $14, before costs.

Supertrend strategy 3: multi-timeframe Supertrend

A common way to cut whipsaws is to require the higher timeframe to agree.

  1. Check Supertrend on D1 (or H4). Only trade in its direction.
  2. On H1, take only the flips that match the higher timeframe colour.
  3. Exit on an H1 flip against you, or trail with the H1 line.
D1 SupertrendH1 flipAction
GreenRed → greenLook to buy
GreenGreen → redExit buys; no sell
RedGreen → redLook to sell
RedRed → greenExit sells; no buy

You can also combine Supertrend with structure. A flip that coincides with a break of a swing high or low, or with a reaction from a supply and demand zone, carries more weight. Smart money traders often use Supertrend on the higher timeframe as a simple bias filter; see smart money concept trading.

Using Supertrend as a trailing stop

Even if you find entries another way, for example with price action trading or support and resistance, the Supertrend line is a practical trailing stop:

  • After entry, move your stop to the Supertrend line at each candle close.
  • Because the line only moves in your favour while the trend holds, the stop never loosens.
  • In fast, volatile markets, the line moves further away, giving the trade more room automatically.

Supertrend vs Parabolic SAR vs moving averages

PointSupertrendParabolic SARMoving average
Based onATR (volatility)Price extremes and accelerationAverage of closing prices
Standard in MT5No (custom only)YesYes
ShapeOne line, colour flipsDots above or below priceSmooth line
Trailing stopYes, moves in one directionYes, speeds up over timeNot designed as one
WeaknessWhipsaws in rangesFlips very often in rangesLags at turns

Supertrend and Parabolic SAR both work best in trends and struggle in ranges. Supertrend's distance comes from volatility, while Parabolic SAR tightens as the trend gets older. Read the Parabolic SAR indicator guide for the details.

Best timeframes for the Supertrend indicator

TimeframeHow Supertrend behaves
D1 and H4Fewer, cleaner flips; good for bias and swing trades
H1Good for intraday trading in the London and New York sessions
M15Usable with a higher multiplier; more flips
M1 and M5Very noisy; many false flips

Scalping is not permitted at Xellion, so use Supertrend on M15 and higher. Flips also cluster around the London open (about 1:30 pm IST in winter) and US data releases (often around 7:00 pm IST in winter). Check the economic calendar so a news spike does not flip your line and reverse straight back.

Common Supertrend mistakes

MistakeWhat happensBetter approach
Trading every flip in a rangeRepeated small lossesUse a trend filter or higher timeframe agreement
Acting on intra-candle flipsSignal disappears before the closeWait for the candle to close
Changing settings after every lossCurve-fittingTest a setting on a long demo sample
Assuming Supertrend is built into MT5Cannot find itAdd a trusted custom indicator on desktop MT5
Using an unknown file from the internetUnreliable or unsafe codeUse reviewed sources and check the code
Stop exactly on the lineStopped by spreadAdd a small buffer

Practise the Supertrend indicator with Xellion

You can add a custom Supertrend indicator to MetaTrader 5 on desktop, then follow positions on the Xellion app for iOS and Android or on WebTrader. A free demo account lets you test Supertrend settings, flips and trailing stops with live prices and no real money.

When you are ready to go live:

  1. Choose an account on the accounts page: Standard (minimum first deposit $50), Raw ($250) or Zero ($750).
  2. Fund it on the funding page: UPI deposits are instant from $50 for clients in India, bank transfer from $100 and crypto from $10.
  3. Define your rules first. Decide your settings, trend filter and exit, then size each trade from the stop-loss level.

CFDs are complex instruments and carry a high risk of losing money. Not investment advice.

What is the Supertrend indicator?

The Supertrend indicator is a trend-following line based on the average true range. It sits below price in an uptrend and above price in a downtrend, and flips when price closes through it.

What are the best Supertrend settings?

The most common Supertrend settings are an ATR period of 10 and a multiplier of 3. A higher multiplier gives fewer, later signals; a lower one gives more, earlier signals with more noise.

Is the Supertrend indicator available on MT5?

Not as a standard indicator. Supertrend is not in MT5's built-in list, so you need to add a custom indicator file to the MQL5 Indicators folder on the MT5 desktop terminal.

How do you read a Supertrend bullish and bearish signal?

A bullish signal is when the line flips from above price (red) to below price (green) on a candle close. A bearish signal is the opposite flip from green to red.

What is the Supertrend formula?

The basic bands are the candle midpoint, (high + low) ÷ 2, plus or minus the multiplier times ATR. The line follows the lower band in an uptrend and the upper band in a downtrend, and only moves in the trend's direction.

Which is better, Supertrend or Parabolic SAR?

Neither is better in every market. Supertrend uses volatility and tends to flip less often; Parabolic SAR is built into MT5 and tightens as trends mature. Both struggle in ranges.

Can Supertrend be used for gold trading?

Yes. Supertrend works on gold (XAU/USD) the same way as on forex. Because gold is volatile, many traders use a multiplier of 3 or higher.

This article is general information and education, not investment advice. CFDs are complex instruments and carry a high risk of losing money rapidly due to leverage.

Ready to put it into practice?
Open an account in minutes, or practise on a free demo first.

Risk warning: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money. Blog articles are general information and education, not investment advice. Risk disclosure