On this page
- What is the Supertrend indicator?
- How the Supertrend indicator is calculated
- Step 1: ATR
- Step 2: basic bands
- Step 3: final bands
- Step 4: the Supertrend line
- Worked example
- Best Supertrend settings
- How to add the Supertrend indicator on MT5 (custom indicator)
- Supertrend strategy 1: simple flip entries with a trend filter
- Rules for a buy
- Example: EUR/USD (H4)
- Supertrend strategy 2: pullback entries to the Supertrend line
- Example: gold (H1) downtrend
- Supertrend strategy 3: multi-timeframe Supertrend
- Using Supertrend as a trailing stop
- Supertrend vs Parabolic SAR vs moving averages
- Best timeframes for the Supertrend indicator
- Common Supertrend mistakes
- 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 state | Line position | Colour (typical) | Signal |
|---|---|---|---|
| Uptrend | Below price | Green | Hold or look for buys |
| Downtrend | Above price | Red | Hold or look for sells |
| Flip up | Moves from above to below | Red → green | Bullish signal |
| Flip down | Moves from below to above | Green → red | Bearish 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.
| Input | Value |
|---|---|
| EUR/USD H4 high | 1.1650 |
| H4 low | 1.1620 |
| Midpoint | 1.1635 |
| ATR (10) | 0.0030 (30 pips) |
| Multiplier | 3 |
| Basic lower band | 1.1635 − 3 × 0.0030 = 1.1545 |
| Basic upper band | 1.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.
| Setting | ATR period | Multiplier | Behaviour | Typical use |
|---|---|---|---|---|
| Fast | 7 | 2 | Flips often, tight trailing stop | Short intraday moves, more noise |
| Standard | 10 | 3 | Balanced; most common default | Most traders, most timeframes |
| Slow | 14–20 | 3–4 | Few flips, wide stop | Swing 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:
- 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.
- In MT5, go to File → Open Data Folder.
- Open MQL5 → Indicators and copy the file there.
- Back in MT5, right-click Indicators in the Navigator window and choose Refresh (or restart MT5).
- Find the indicator under Navigator → Indicators and drag it onto your chart.
- In the Inputs tab, set the ATR period (for example 10) and multiplier (for example 3). Click OK.
- 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
- Price is above the 200-period moving average on the same chart (uptrend filter). See moving average trading.
- Supertrend flips from red to green.
- Enter on the close of the flip candle.
- Place the stop-loss level just below the Supertrend line.
- 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.
| Item | Level | Calculation |
|---|---|---|
| Entry | 1.1612 | Close of the flip candle |
| Stop-loss level | 1.1563 | 5 pips below the Supertrend line at 1.1568 |
| Planned loss | 49 pips | 1.1612 – 1.1563 |
| Exit | Trailing | Exit 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.
- Supertrend is green (uptrend) and has been for several candles.
- Price pulls back close to the line.
- A bullish reversal candle forms near the line, such as a pin bar or bullish engulfing candle. See our candlestick patterns guide.
- 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.
| Item | Level | Calculation |
|---|---|---|
| Entry | $4,036 | Close of the engulfing candle |
| Stop-loss level | $4,050 | Above the Supertrend line at $4,046 |
| Planned loss per ounce | $14 | $4,050 – $4,036 |
| Target | $4,008 | 2 × 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.
- Check Supertrend on D1 (or H4). Only trade in its direction.
- On H1, take only the flips that match the higher timeframe colour.
- Exit on an H1 flip against you, or trail with the H1 line.
| D1 Supertrend | H1 flip | Action |
|---|---|---|
| Green | Red → green | Look to buy |
| Green | Green → red | Exit buys; no sell |
| Red | Green → red | Look to sell |
| Red | Red → green | Exit 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
| Point | Supertrend | Parabolic SAR | Moving average |
|---|---|---|---|
| Based on | ATR (volatility) | Price extremes and acceleration | Average of closing prices |
| Standard in MT5 | No (custom only) | Yes | Yes |
| Shape | One line, colour flips | Dots above or below price | Smooth line |
| Trailing stop | Yes, moves in one direction | Yes, speeds up over time | Not designed as one |
| Weakness | Whipsaws in ranges | Flips very often in ranges | Lags 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
| Timeframe | How Supertrend behaves |
|---|---|
| D1 and H4 | Fewer, cleaner flips; good for bias and swing trades |
| H1 | Good for intraday trading in the London and New York sessions |
| M15 | Usable with a higher multiplier; more flips |
| M1 and M5 | Very 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
| Mistake | What happens | Better approach |
|---|---|---|
| Trading every flip in a range | Repeated small losses | Use a trend filter or higher timeframe agreement |
| Acting on intra-candle flips | Signal disappears before the close | Wait for the candle to close |
| Changing settings after every loss | Curve-fitting | Test a setting on a long demo sample |
| Assuming Supertrend is built into MT5 | Cannot find it | Add a trusted custom indicator on desktop MT5 |
| Using an unknown file from the internet | Unreliable or unsafe code | Use reviewed sources and check the code |
| Stop exactly on the line | Stopped by spread | Add 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:
- Choose an account on the accounts page: Standard (minimum first deposit $50), Raw ($250) or Zero ($750).
- Fund it on the funding page: UPI deposits are instant from $50 for clients in India, bank transfer from $100 and crypto from $10.
- 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.



