All indicators

True Baseline Median SuperTrend

Feb 20, 2026

Static chart image
Price Action BasedSignalsTrailing-StopVolatility

The True Baseline Median SuperTrend indicator is a volatility-adaptive trend-following tool designed to reduce noise and provide stable directional signals through a filtered baseline and median smoothing.

Usage

The True Baseline Median SuperTrend can be used to identify market direction, potential breakout points, and trailing stop levels. By filtering out minor price fluctuations, it provides a clearer view of the prevailing trend compared to standard SuperTrend variations.

  • Trend Confirmation: When the price closes above the upper boundary, a bullish trend state is confirmed, and the indicator plots a green trailing line with a "Long" label. Conversely, a close below the lower boundary confirms a bearish state, marked by a red trailing line and a "Short" label.
  • Trailing Stops: The active directional band serves as a dynamic support or resistance level, which can be used to manage risk or set trailing stop-losses.
  • Filtering Bias: Traders can use the indicator on higher timeframes to determine the overall market bias before looking for entries on lower timeframes.

Details

The script operates through a three-layered structural approach to improve trend integrity:

  • Volatility-Qualified Baseline: Instead of using a simple midpoint, the script calculates a baseline by sampling price observations only when the True Range (TR) is greater than or equal to the median ATR over a specified lookback. This ensures the baseline reflects periods of significant market activity.
  • Median Smoothing: Traditional moving averages are prone to distortion by outliers. This script applies median smoothing to both the baseline and the volatility bands. This technique is more robust against sharp price spikes, resulting in a smoother trend line that resists whipsaws during erratic movements.
  • Adaptive Envelopes: The bands are projected from the refined baseline using an ATR multiplier, allowing the indicator to expand and contract dynamically based on current market volatility.

Settings

True Baseline Median SuperTrend

  • Source: Defines the price series (e.g., close, hl2) used for the baseline construction.
  • ATR Length: Controls the lookback period for the Average True Range calculation, affecting the indicator's sensitivity to volatility.
  • True Baseline Length: Determines the window used for constructing the volatility-qualified baseline.
  • Factor: The multiplier applied to the ATR to expand or contract the adaptive bands. Higher values result in wider bands and fewer signals.
  • Median Period: Sets the lookback for the median smoothing applied to the bands. Increasing this value improves stability and reduces noise.

FAQ

How do I access True Baseline Median SuperTrend?

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

What markets is this indicator best suited for?

Due to its median-based smoothing, it is particularly effective in high-volatility markets such as Cryptocurrencies and news-driven equities where traditional averages might fail.

Can I use this for intraday trading?

Yes, by shortening the ATR Length and Median Period, the indicator becomes more responsive to price action, making it suitable for lower timeframe scalping or day trading.

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.