Learn › Indicators
The Supertrend Indicator Explained: Calculation, Settings and Limits
Supertrend is one of the most widely used trend-following overlays on retail charting platforms. It draws a single line that sits below price during an uptrend and above price during a downtrend, and it switches sides when price closes through it. That simplicity is exactly why it is popular for rule-based trading — and also why it is easy to misuse. This guide walks through how the line is actually built, what each setting does, and the market conditions in which it tends to struggle.
The building block: Average True Range
Supertrend is a volatility-adjusted indicator. Instead of placing its line a fixed number of points or a fixed percentage away from price, it uses the Average True Range (ATR) to decide how far away the line should sit. When the market is calm, ATR is small and the line hugs price. When the market is volatile, ATR expands and the line moves further away, giving price more room to fluctuate before the trend is considered broken.
How the line is calculated
For every bar, the calculation starts from the midpoint of the bar's range, often written as (High + Low) / 2. Two raw bands are then placed around that midpoint:
- Upper basic band = midpoint + (multiplier × ATR)
- Lower basic band = midpoint − (multiplier × ATR)
The raw bands would jump around from bar to bar, so the indicator applies a ratchet rule to produce the final bands:
- The final lower band may only move up while the previous close stayed above it. If the new basic lower band is lower than the previous final lower band, the previous value is kept.
- The final upper band may only move down while the previous close stayed below it. If the new basic upper band is higher than the previous final upper band, the previous value is kept.
The Supertrend line is whichever final band is currently active. In an uptrend the line is the final lower band; in a downtrend it is the final upper band. When a bar closes on the other side of the active band, the trend flips and the opposite band becomes the line.
The ratchet is what makes Supertrend behave like a trailing stop: during a rising market the line can step up but never down, so it gradually locks in the distance between price and the most recent volatility-adjusted level.
What the two settings do
Most platforms expose two parameters:
- ATR period (commonly 10). This controls how many bars are averaged to measure volatility. A shorter period reacts faster to sudden volatility changes; a longer period produces a smoother, slower-changing distance.
- Multiplier (commonly 3). This controls how many ATRs away from the midpoint the bands sit. A larger multiplier places the line further away, which means fewer flips and longer-held trends, but also larger give-backs before an exit. A smaller multiplier flips more often and exits sooner, but is shaken out by ordinary noise more frequently.
There is no universally correct pair. A setting that works on a daily chart of a large-cap index may be far too sensitive on a one-minute chart of a volatile crypto perpetual. The honest way to choose is to test a range of values on historical data and, just as importantly, to check whether the result holds up on data the settings were not tuned on (see walk-forward optimization).
Reading Supertrend signals
Traders typically use the indicator in three ways:
- Direction filter. Only take long setups from another method while Supertrend is in an uptrend, and only short setups while it is in a downtrend.
- Entry on flip. Enter when the line flips from above price to below (long) or from below to above (short). This is the simplest mechanical use.
- Trailing exit. Hold a position while the line stays on the same side and exit when it flips, or use the line itself as a trailing stop level.
One detail matters a lot for automation: a flip is only confirmed when the bar closes. During a live bar, price can cross the line and come back before the close. A system that reacts to intrabar crosses will produce different results from one that waits for the close, and a backtest that assumes close-confirmed signals will not match a live system that trades intrabar.
Where Supertrend struggles
Like every trend-following tool, Supertrend makes its money in sustained directional moves and gives some of it back in sideways markets.
- Range-bound markets produce repeated flips, each of which may be a small loss plus trading costs. This is called whipsaw.
- Gaps can carry price far through the line before a close confirms the flip, so the realised exit can be much worse than the line value suggested.
- Volatility shocks widen ATR quickly, pushing the line away from price and delaying exits right when risk is highest.
- Lag. Because it needs a close beyond a volatility-adjusted band, Supertrend will always miss the first part of a reversal.
Common mitigations include combining Supertrend with a trend-strength or volatility filter, trading it on higher timeframes where noise is relatively smaller, and using a separate hard stop for gap risk rather than relying only on the line.
A worked example
Suppose a stock has a bar with a high of 510 and a low of 490, so the midpoint is 500. With a 10-period ATR of 8 and a multiplier of 3, the basic bands are 500 + 24 = 524 and 500 − 24 = 476. If the market is in an uptrend and the previous final lower band was 480, the new basic lower band of 476 is lower, so the ratchet keeps the line at 480. If the next bar's midpoint rises to 512 with the same ATR, the basic lower band becomes 488, which is higher than 480, so the line steps up to 488. If a later bar closes at 485, below 488, the trend flips down and the line jumps to the final upper band.
Key takeaways
- Supertrend is an ATR-based band with a one-way ratchet; it behaves like a volatility-adjusted trailing stop.
- The multiplier trades responsiveness against whipsaw; the ATR period trades reactivity against smoothness.
- Flips are confirmed on the close — make sure your backtest and live execution use the same rule.
- Expect losing streaks in sideways markets and plan position size accordingly.
Educational content only. This guide explains general concepts and is not investment advice or a recommendation to trade any instrument. Trading involves substantial risk of loss, and historical or simulated results do not guarantee future performance. Read the Risk Disclosure.
