Skip to main content
QuantForged
T-41D 00:00:00
Join Discord
IndicatorsTrendSupertrend
Trend · 04/10Live · v2.0.1

Supertrend. Clean regime filter.

Supertrend with corrected band-trailing logic — the reference implementation, without the inverted-logic bug present in most open-source ports. ATR-based volatility bands that trail behind price, flipping direction only on closes beyond the trailing band.

  • NT8· LIVE
  • cTrader· Q3 '26
  • TradingView· Q3 '26
  • MT5· Q4 '26
  • Tradovate· Q4 '26
Live demo · ES 5m · 2026-04-15Rendering

§ Who it’s for

Built for traders who need a decision, not noise.

  • Swing traders filtering trend direction across multiple timeframes
  • Systematic strategies using trend regime as a signal filter
  • Discretionary traders wanting a clean "up / down" regime call

§ Features

What’s in the box.

  • Correctly implemented band-trailing (bands lock in the direction of trend, not reset on every bar)
  • Configurable ATR period and multiplier
  • Direction property exposed (+1 / -1) for strategy consumption
  • Flip alerts on direction change
  • Optional Heikin-Ashi mode for smoother regime classification
  • Replay-safe — no lookahead during direction evaluation

§ Parameters

Every setting, documented.

ParameterTypeDefaultRangeDescription
  • ATR Periodint105–50Lookback for the Average True Range calculation.
  • Multiplierdouble3.01.0–6.0ATR multiplier for trailing band distance.
  • SourceenumHL2Close · HL2Price input. HL2 is the reference Supertrend input.
  • Heikin-AshiboolfalseUse Heikin-Ashi candles as input for smoother regime.
  • Alert on FlipbooltrueFire an alert when direction changes.

§ Changelog

Every change, public.

  1. v2.0.12026-03-15
    • Fixed spurious flip on first bar of session under certain volatility conditions.
  2. v2.0.02026-01-22
    • Rewrote band-trailing logic. Earlier version had the common inverted-logic bug found in most open-source ports.