Direct answer
Supertrend is a forex trend indicator that turns price movement and volatility into a dynamic “support/resistance” line plus a direction state (often described as bullish or bearish). It is computed from (1) an average true range (ATR) measure of volatility and (2) band formulas that shift with that volatility. The indicator’s direction typically changes when price action crosses the relevant band.
The important idea is that Supertrend is rule-based and mechanical: you feed it a time series of prices (for example, OHLC candles) and chosen parameters, and it outputs a line and a direction state. It does not inherently guarantee that the next move will follow the indicated direction.
Mechanism and definition
A practical way to understand Supertrend is as follows:
-
Start with volatility (ATR) Supertrend uses ATR to estimate how much price typically moves. ATR is calculated from price data using the “true range” concept, which accounts for gaps between candles. In plain terms: if recent candles have larger ranges, ATR tends to be higher; if ranges are smaller, ATR tends to be lower.
-
Build volatility-adjusted bands For each candle, the indicator forms upper and lower candidate bands using the current price level (commonly based on the candle’s median price or similar midpoint concept) plus or minus a multiple of ATR.
-
Convert bands into a stateful trend line Rather than using the raw upper/lower bands directly as separate static lines, Supertrend applies a set of rules that produce a single evolving line and a direction state. Typically:
- When the indicator is in a bullish/buying direction state, it follows the lower band logic more closely.
- When it is in a bearish/selling direction state, it follows the upper band logic more closely.
The rules often include “band tightening” behavior: once in a direction state, the active band is constrained so that it does not move against the trend state more aggressively than intended. This produces a smoother, more consistent line than simply recomputing independent bands each bar.
- Define the flip condition The direction state can change when price crosses the active band. In many common formulations, a flip occurs when the closing price (or another defined price point) moves beyond the band threshold that corresponds to the current direction.
Because Supertrend depends on ATR, it naturally adapts to volatility: in higher volatility conditions, band distances widen; in lower volatility conditions, they narrow. That adaptability is part of its design goal, but it also means the indicator’s behavior changes with market regime.
Inputs, outputs, and a checkable example model
Inputs
To compute Supertrend, you need:
- A sequence of OHLC candles (open, high, low, close) for each period.
- A chosen ATR length (often described as an “ATR period”).
- A chosen ATR multiplier (often denoted as a factor applied to ATR).
- A precise rule for which price is used in band calculations (commonly a midpoint such as (high+low)/2, but the exact definition must match the formulation you are using).
- A flip rule (for example, “close crossing the band” vs “high/low crossing”).
Different platforms and tutorials may implement slightly different conventions. For independent verification, match the exact definition used in the source you are studying.
Outputs
From those inputs, the indicator typically outputs:
- A Supertrend line value for each period.
- A direction state (uptrend/downtrend, or bullish/bearish).
- An implicit history of flips that occurred when the direction state changed.
Example sequence (assumptions stated)
Here is a checkable, simplified sequence model (not a claim about one specific platform):
Assume:
- ATR length is N periods.
- ATR is computed using true range and then smoothed/averaged across N periods.
- Band midpoint uses (high + low) / 2.
- Candidate lower band = midpoint − (multiplier × ATR).
- Candidate upper band = midpoint + (multiplier × ATR).
- Flip checks use the candle close.
For each candle starting after the ATR warm-up period:
- Compute ATR for the current candle using the chosen N and true range definition.
- Compute midpoint = (high + low) / 2.
- Compute candidate lower and upper bands using the multiplier.
- Apply direction-state rules to choose the active band value (this is where implementations differ; the goal is usually to keep the active band consistent with the current direction).
- If the close crosses beyond the active band threshold, flip the direction and switch which band becomes active.
If you reproduce these steps using the same formulas and conventions, you should be able to match a chart’s Supertrend values closely for that implementation. If you cannot, it usually comes down to differences in one of the rules above (midpoint definition, smoothing method, or flip condition).
Limitations and risks (material failure modes)
Supertrend’s limitations come from its reliance on volatility estimation and its rule-based flip logic.
-
Lag in fast reversals Because ATR-based bands need time to develop and because the indicator often changes state only after a crossing, Supertrend can lag during sharp trend changes. In practice, this can show up as late flips after a reversal.
-
Choppy or range-bound markets In sideways markets, price may repeatedly cross bands. That can cause frequent direction flips, producing a sequence of short-lived signals and increased noise.
-
Parameter sensitivity The ATR length and ATR multiplier materially affect band width and responsiveness. Different choices can produce noticeably different behavior on the same price series. Therefore, any claim that Supertrend “works” must specify parameters and the exact formula used.
-
Implementation differences across providers Even with the same general concept, providers may implement details differently: the band midpoint definition, how bands are adjusted over time, and the exact flip rule. Those differences can change the resulting line and direction state.
-
Verification uncertainty without the exact formula If you test Supertrend on historical data using a different formulation than the one shown on a chart, you may conclude incorrectly that the indicator is inconsistent. Independent verification requires matching the precise implementation details.
These failure modes do not mean the concept is invalid; they mean the indicator is measuring a specific volatility-adjusted trend logic that behaves differently across regimes.
How to verify and what to watch next
A reader can independently verify Supertrend behavior by:
- Using the exact ATR definition and smoothing method from the implementation you want to match. - Computing ATR and candidate bands from the same OHLC data and the same parameter values.