The Supertrend strategy uses one line that sits below price in an uptrend and above price in a downtrend, and flips sides when a candle closes through it. This free guide, which you can read with no sign-up, explains exactly how that line is calculated from the average true range, what its two settings do to the way it behaves, why it is so often used as a trailing stop rather than as an entry, and where it reliably struggles. The aim is not to hand you a magic setting. It is to give you a written way to decide whether the flip of a Supertrend line is useful for the market and timeframe you actually trade, and a testing routine you can run on your own charts.
How the Supertrend line is built
Supertrend starts with a midpoint for each candle: the high plus the low, divided by two. From that midpoint it adds and subtracts a multiple of the average true range (ATR) to produce a basic upper band and a basic lower band. With the common defaults of an ATR length of 10 and a multiplier of 3, the upper band is the midpoint plus three ATRs and the lower band is the midpoint minus three ATRs.
The clever part is what happens next. The final lower band is only allowed to rise while price is above it. If the new basic lower band would be lower than the previous one, the old value is kept. The final upper band is only allowed to fall. So in an uptrend, the visible line is the final lower band, and it ratchets upward and never steps back. It stays flat during pauses. In a downtrend, the visible line is the final upper band, which ratchets down. When a candle closes beyond the visible line (below the lower band in an uptrend, above the upper band in a downtrend), the line jumps to the other band and the trend direction flips.
Two consequences follow from this construction. First, Supertrend is a trailing stop that is always positioned a fixed number of ATRs from price, so the distance between price and the line shrinks and grows with volatility. Second, because the flip depends on a close through the line, a wick that pierces it without closing beyond it does nothing. That is the same closed-candle discipline the other guides in this library use.
It helps to be honest about what the indicator is not. It is not a prediction. It is a lagging description of direction that always flips after price has already moved a multiple of ATR against the previous trend. It is built from a handful of arithmetic steps, so there is nothing hidden in it. This guide describes the standard formula used in TradingView’s built-in Supertrend. If you use a third-party version, read its description, because variations exist (different averaging of the true range, or a different source price).
What the two settings change
ATR length controls how quickly the volatility estimate reacts. A short length such as 7 follows a sudden burst of volatility quickly, which widens the bands in a hurry. A longer length such as 14 or 21 smooths it out, so the bands change gradually. In practice the length matters less than the multiplier.
Multiplier sets the distance. At 2, the line hugs price and flips often; the trend direction changes with small counter-moves. At 3, it gives price room to pull back before flipping. At 4 or more, it flips rarely and each flip comes after a large move against the trend. Neither end is better in general. A small multiplier suits a market that trends smoothly and an approach that accepts frequent small stops. A large multiplier suits a market with deep pullbacks, an approach that wants to stay in a long trend, and a trader who is comfortable giving back a large part of an open gain before the line flips.
It is useful to separate two jobs. Supertrend as a direction filter (is the line below price or above it) needs only the color of the line. Supertrend as an exit needs a multiplier chosen for the stop distance you want. Many beginners pick one setting for both jobs and then wonder why neither works well. Writing the job next to the setting in your notes prevents that.
Market conditions it suits
Because the line only moves in one direction until a close breaks it, Supertrend does best in markets that make sustained, reasonably smooth moves with pullbacks smaller than the multiplier times ATR. Trending phases on the 1-hour, 4-hour and daily charts of forex pairs, indices and liquid crypto fit this. It struggles in sideways markets, where price repeatedly closes on both sides of a nearly flat line and the trend flips again and again. Each of those flips is a small loss for a trader who treats them as entries. This is the same weakness all trend-following tools share, and it is why a range check should come before a Supertrend decision, as described in the trend versus range strategy guide.
Around scheduled news, a single large candle can close beyond the line and flip the trend, and the next candle can reverse it. If you trade near high-impact events, either stand aside or require two consecutive closes beyond the line, and record which rule you used. If you use the Sydney-time clock for sessions, note that Australian-hours trading in many forex pairs is quieter, so a line that flips during those hours may be reacting to thin conditions rather than a decision by the wider market.
Rules for using the flip as a trade idea
The simplest written rule set is as follows. Use it on a single timeframe, such as the 4-hour chart, with settings of 10 and 3.
- Direction. A long idea exists when the line turns from red above price to green below price on a closed candle. A short idea exists on the opposite flip.
- Trend filter (optional). Only take long flips when price is above the 200 EMA, and short flips when below. If the filter disagrees, record the flip as skipped.
- Entry. Enter on the open of the candle after the flip, or on the first pullback toward the line that holds a closed candle above it. Choose one rule for the whole test.
- Stop. Use the Supertrend line itself, a small buffer beyond it, or a fixed ATR multiple. Write the number down before the entry.
- Exit. Exit when the line flips back, or when your own written stop is hit, whichever happens first.
- Size. Risk a fixed fraction of the account from the entry to the stop. If the line is far away, the position is smaller.
A point worth stressing: entering at the flip means the stop is often far from the entry, because the line sits several ATRs from price by the time the candle closes beyond it. That is the price of the filter. If the distance is too big for your risk fraction to give a position size you can actually take, the idea is skipped, not rescued with a tighter stop that the structure does not support.
Worked example (illustrative numbers, a 4-hour chart of a forex pair)
The numbers are illustrative only. They show how the line, the stop and the position size relate.
| Step | Reading | Result |
|---|---|---|
| Setting | ATR length 10, multiplier 3. The 10-period ATR is 0.0030. | The line sits about 0.0090 from the candle midpoint. |
| Flip | A 4-hour candle closes at 1.2640. The Supertrend line was above at 1.2610 and turns green below price at 1.2548. | Direction flips to up. |
| Filter | The 200 EMA is at 1.2480 and rising slightly. Price is above it. | Filter agrees. |
| Stop | Line value 1.2548 minus a buffer of 0.0006 gives 1.2542. Distance from 1.2642 entry is 0.0100, or 100 pips. | Risk is 100 pips. |
| Size | If the account risk is a fixed small fraction, size is that amount divided by 100 pips. | Computed before entering. |
| Management | The line ratchets up with each higher candle. After eight candles it sits at 1.2605. | Stop is raised to the line. |
| Exit | A later candle closes at 1.2598, below the line, and the line flips to red. | Trade is over. Result recorded in R. |
Here the exit is a close below the line, not an intraday touch. If the same flip had occurred in a flat market, the line might have flipped back after three candles, and the trade would have ended near a loss of a full R or a bit less. The rule set is the same in both cases.
Common mistakes
- Treating every flip as an entry. In a range, flips arrive in clusters. Without a regime check, you will take all of them.
- Shortening the multiplier after a loss. Cutting 3 to 1.5 to avoid the last loss simply makes the line flip more often, and each flip is a new trade with spread attached.
- Using a wick as a flip. The line flips on a close. If you see a spike through it and act, you have changed the rule.
- Ignoring the distance. A line that sits 5 ATRs away is a wide stop. Size the trade from it or skip the trade.
- Comparing versions. Different platforms and scripts calculate ATR differently (simple average versus Wilder’s smoothing). The line will not match another platform candle for candle. Test on the version you will trade.
- Using Supertrend and a moving average crossover as two separate “confirmations”. Both are lagging descriptions of the same direction. Agreement between them is less informative than it looks.
Variations
As a trailing stop only. Enter on any rule you like, such as a pullback or a breakout, and use the Supertrend line purely as the trailing exit. This separates the entry decision from the exit, and lets you compare different entries under one exit rule.
Two settings together. A slower line (for example 10 and 4) defines the direction, and a faster line (for example 7 and 2) times entries on pullbacks within that direction. This resembles the ladder idea used in the multi-timeframe trading strategy guide, but using one chart.
Higher timeframe direction, lower timeframe flip. Take only the 1-hour flips that agree with the 4-hour line. This reduces the number of trades and often the number of flips in a range.
Close-only confirmation. Require the next candle to also close on the new side of the line before acting. You trade the lag for fewer false flips.
How to study and test it yourself
Choose one instrument and one timeframe. Add Supertrend with the default settings and scroll back through at least a few hundred candles. For every flip, record the date in Sydney time, the direction, the distance from the line to price in ATRs, whether the 200 EMA agreed, the entry price under your chosen rule, and the exit price on the opposite flip. Convert each result to R using the distance to your stop. Then group the results by whether a filter agreed and by the multiplier. Do the same for multipliers of 2, 3 and 4 on the same data. You will see how a tighter line gives more trades with smaller average results, and a wider line gives fewer trades with deeper giveback. Which of those profiles you prefer is a personal decision, not a market fact.
Two safeguards are worth adding. Test on a second instrument the setting was not chosen on, and test across a sideways stretch as well as a trending one, so you can see what the cluster of flips costs. The ATR stop loss guide covers the stop arithmetic, and the risk-reward ratio page explains how to read results given a low win frequency and larger average winners.
How to apply it on TradingView
Search for Supertrend in the Indicators menu and add the built-in version published by TradingView. In the settings, the defaults are an ATR length of 10 and a multiplier of 3. Keep them for your first test. The line is green below price in an uptrend and red above price in a downtrend, with an optional fill. Add a 200 EMA for the filter and ATR (14) if you want to read the distance numerically. Use the replay tool to step through candles and note each flip. For alerts, use the “once per bar close” option so the alert fires on closed candles, using the steps in the TradingView alerts guide.
Apex Edge Trend Path, a volatility-adjusted trailing path, is coming soon and is not for sale yet, so there is no buy button here. For momentum context on the same chart, Apex Edge MACD Momentum Score is a paid and optional tool, and Apex Edge Trend Pullback is a paid, optional tool for color-coded EMAs. Supertrend, a 200 EMA and ATR are enough to practice every step on this page.
Frequently asked questions
What is the Supertrend strategy?
It uses a line built from the average true range that trails price and flips side when a candle closes through it. The flip gives direction, and the line itself works as a trailing stop.
What do the length and multiplier do?
The ATR length controls how quickly the volatility estimate reacts. The multiplier sets the distance of the line from price: a small value flips often, a large value flips rarely and gives back more at the turn.
Is Supertrend an entry or an exit?
It is both a direction filter and a trailing stop. This guide separates the two jobs and suggests you write the job next to the setting in your notes.
Why does Supertrend struggle in ranges?
In a sideways market price closes on both sides of a nearly flat line, so the trend flips repeatedly. Check the regime before treating each flip as a trade idea.
Do I need a paid indicator?
No. TradingView’s built-in Supertrend, a 200 EMA and ATR are enough. Paid tools are optional. This guide is free to read with no sign-up.
Is this a trade recommendation?
No. This is general education. Examples use illustrative numbers. Education only. Not financial advice. Trading involves risk of loss.
Keep reading
Volatility-adjusted trailing path
Build the same idea with each ingredient chosen separately.
Donchian channel strategy
A breakout alternative with a two-channel exit.
20/50/200 EMA stack
A trend filter to pair with a flip.
More in trading strategies (free to read, no sign-up), or browse all guides by topic. Questions? Email contact@brainiosoftware.com.
General information only. This guide is general education, not personal financial product advice or a recommendation to buy or sell anything. Indicator readings, alerts and screener results are not trade recommendations. Examples use illustrative numbers. TradingView is a third-party platform; we are not affiliated with or endorsed by TradingView. Education only. Not financial advice. Trading involves risk of loss. Read the full risk disclaimer.