Skip to content

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.


  1. Calculate ATR: Average True Range over n periods
  2. Upper Band: (High + Low)/2 + (Multiplier × ATR)
  3. Lower Band: (High + Low)/2 - (Multiplier × ATR)
  4. Flip Logic: In uptrend, use lower band as Supertrend (support). In downtrend, use upper band (resistance)
  5. 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)

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

These are the signal names you select when configuring ST in the algorithm builder or via the MCP agent:

SignalTriggers WhenTypical Use
price_above_supertrendPrice is above the Supertrend lineBullish trend — Supertrend acts as support
price_below_supertrendPrice is below the Supertrend lineBearish trend — Supertrend acts as resistance

Display: Overlay (on price chart)

Category: Trend

Threshold range: Price-based


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