Supertrend
Supertrend is an ATR-based trailing line that changes side as price moves through its adaptive bands.
What this is
The supertrend filter returns the Supertrend line as a price and compares that line with a fixed numeric value. It does not directly test whether current price is above or below Supertrend. Use price_vs_supertrend_pct for that relationship.
When to use it
Use raw Supertrend when the calculated line itself must be above or below a known price level. Use price-versus-Supertrend for trend side, flips, and signed distance.
Before you start
- Defaults are period: 10 and mult: 3 .
- Available operators are above and below .
- The value is a fixed quote-price threshold.
- A larger factor places bands farther from price and generally reduces flips.
Step by step
Step 1: Choose the timeframe
The timeframe defines the candles and true range used by the line. Lower timeframes usually flip more often.
Step 2: Set ATR length and factor
ATR Length controls volatility smoothing. Factor scales the band distance. Tune them together, not independently from market volatility.
Step 3: Set the fixed level
Choose above or below and enter the price level for the Supertrend line. If the intended threshold is the current close, use the signed-distance filter instead.
What you should see
The raw rule passes when the Supertrend line, not current price, satisfies the fixed-level condition.
Common mistakes
- assuming raw Supertrend means price above Supertrend
- entering 0 and expecting a trend-direction test
- reducing the factor until ordinary noise causes frequent flips
- treating the line as guaranteed support or resistance
Related articles
- Filters Reference
- Parabolic SAR And Price Versus Supertrend
- Exit Settings And Risk Management