All indicators

Smart Supertrend

Jan 7, 2026

Static chart image
Dynamic OverlaysSignalsMoving AveragesPivot Based (Retrospective)Trailing-StopVolatility

The Smart Supertrend indicator is a comprehensive trend and market context tool that integrates an adaptive cloud, a pivot-anchored trailing line, and an ADX strength filter. It is designed to identify dominant market regimes while providing a structured framework for entries, pullbacks, and trend exhaustion.

Usage

The script serves as a multi-layered system for trend following:

  • Market Regime: Use the adaptive "cloud" to determine the primary bias. A bullish cloud (rising KAMA slope) suggests prioritizing long positions, while a bearish cloud (falling KAMA slope) suggests prioritizing shorts.
  • Structural Trailing: The PP (Pivot Point) line acts as the "line in the sand." Price holding above this line in a bullish regime confirms structural support, whereas price staying below in a bearish regime confirms structural resistance.
  • Trend Validation: The ADX filter acts as a quality control layer. Signals are considered more robust when the ADX is above the user-defined threshold, indicating sufficient momentum to sustain a trend.
  • Entries and Pullbacks: A high-quality entry occurs when the cloud and PP line are in agreement. Traders often look for pullbacks toward the PP line or into the cloud area that subsequently reject and rotate back in the direction of the trend.

Details

The Smart Supertrend is built on three core pillars:

  1. Adaptive Smoothing Cloud: Unlike fixed-length moving averages, this cloud uses an Efficiency Ratio (ER) based smoothing engine (KAMA/MAMA/FAMA). It becomes more responsive during efficient price movement and slows down during choppy, overlapping price action to reduce noise.
  2. Pivot-Anchored Trailing Line: Rather than applying an ATR band directly to price, this script detects swing highs and lows (pivots) to create a "centerline." The ATR-based trailing logic is applied to this smoothed center, resulting in a line that tracks market structure more naturally than a standard Supertrend.
  3. ADX Filter: This layer calculates Plus DI, Minus DI, and ADX. It ensures that signals only occur when directional strength is present, helping to avoid the lateral "choppy" zones where trend systems typically underperform.

Settings

Core

  • Source (Cloud): The price source used for the adaptive cloud calculations.
  • PP Period: The number of bars used to detect swing highs and swing lows for the pivot logic.
  • ATR Factor: The multiplier applied to the ATR to determine the distance of the trailing PP line.
  • ATR Period (PP line): The lookback period for the ATR calculation used in the trailing logic.
  • Cloud Length (ER): The period used to calculate the Efficiency Ratio for the adaptive smoothing engine.
  • ADX Length: The lookback period for the ADX and DI calculations.
  • ADX Threshold: The minimum ADX level required to consider the market as "trending."

Display & Styling

  • Show Signals: Toggles the visibility of triangle (entry) and cross (stop/exit) shapes on the chart.
  • Color Candles: When enabled, candles are colored based on the cloud's current regime.
  • Cloud Styling: Options to adjust the colors and transparency of the Cloud A, Cloud B, and the fill area.

FAQ

How do I use the signals provided by the script?

The signals (triangles) represent moments when the PP line flips trend state in alignment with the cloud and ADX filter. These should be treated as timing cues within a larger trend context rather than automated trade entries.

Why does the PP line move differently than a standard Supertrend?

The PP line is anchored to pivot-point swing structure and smoothed averages rather than just the current bar's price. This makes it less susceptible to "whipsawing" during minor price spikes.

How can I access the Smart Supertrend?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.