ST Overview
Supertrend is a trend-following overlay that uses ATR to create a trailing stop-like line that flips between support (below price in uptrends) and resistance (above price in downtrends). When price crosses the Supertrend line, the trend direction flips.
Supertrend is one of the clearest trend indicators: green line below price = uptrend, red line above = downtrend. No ambiguity.
How Supertrend Works
Section titled “How Supertrend Works”Core Concept
Section titled “Core Concept”- Calculate ATR: Average True Range over n periods
- Upper Band: (High + Low)/2 + (Multiplier × ATR)
- Lower Band: (High + Low)/2 - (Multiplier × ATR)
- Flip Logic: In uptrend, use lower band as Supertrend (support). In downtrend, use upper band (resistance)
- Trend Change: When price crosses the Supertrend line, direction flips
Key Characteristics:
- Clear Trend Direction = Unambiguous — line is either support or resistance
- ATR-Based = Adapts to volatility automatically
- Trailing Stop Behavior = Acts like a dynamic trailing stop loss
- Two Parameters = Period (ATR lookback) and Multiplier (distance from price)
Visual Interpretation
Section titled “Visual Interpretation”Supertrend Behavior:
- Green line below price = uptrend (line acts as support)
- Red line above price = downtrend (line acts as resistance)
- Line flips when price crosses it
- Distance from price = ATR × Multiplier
Trading Signals Available on Reversion
Section titled “Trading Signals Available on Reversion”These are the signal names you select when configuring ST in the algorithm builder or via the MCP agent:
| Signal | Triggers When | Typical Use |
|---|---|---|
price_above_supertrend | Price is above the Supertrend line | Bullish trend — Supertrend acts as support |
price_below_supertrend | Price is below the Supertrend line | Bearish trend — Supertrend acts as resistance |
Display: Overlay (on price chart)
Category: Trend
Threshold range: Price-based
Key Characteristics
Section titled “Key Characteristics”What Supertrend Does Well:
- Clearest Trend Signal: Unambiguous up/down indication
- Built-in Stop Loss: Acts as dynamic trailing stop
- ATR-Adaptive: Automatically adjusts to volatility
- Simple: Only two parameters
What to Watch Out For:
- Whipsaws in Ranges: Frequent flips during consolidation
- Lagging: Signals come after price has already moved
- Multiplier Sensitive: Too low = whipsaws, too high = late signals
When to Use Supertrend:
- Trend Following: Use
price_above_supertrendfor long bias,price_below_supertrendfor short - Dynamic Stop Loss: Use Supertrend level as trailing stop placement
When NOT to Use Supertrend:
- Ranging Markets: Constant flipping produces losses
- Without Trend Confirmation: Add ADX filter