All indicators

Supertrend

Sep 6, 2025

Static chart image
SignalsDashboardMoving AveragesVolatility

The Supertrend indicator tool provides a comprehensive trend-following system that combines momentum, trend strength, and structural filters to identify high-probability trade setups.

Usage

The Supertrend script is designed to identify long opportunities by aligning multiple technical factors. A trade is signaled when all six internal conditions are met simultaneously:

  • Trend Direction: The +DI must be greater than the -DI, indicating buyer dominance.
  • Trend Strength: The ADX must be above its moving average to ensure the market is not in a weak or choppy phase.
  • Short-term Bias: Price must close above the EMA63.
  • Long-term Bias: Price must remain above the EMA4800 (which serves as a proxy for the 200-day EMA on an hourly timeframe).
  • Momentum Confirmation: A breakout is required where the current close is higher than the previous bar's high.
  • Structural Filter: The distance between the EMA2400 and EMA4800 must be greater than a specific ATR-based threshold to ensure trend maturity and separation.

The indicator features a mobile-friendly dashboard that displays the real-time status of these six conditions. Visually, the EMA63 changes color based on the position state (green for active long, red otherwise), accompanied by "BUY" and "SELL" labels for entry and exit points.

Details

This script implements a sequence of filters intended to prioritize mature trends and reduce exposure during ranging markets.

  • EMA Gap: By calculating the distance between the 2400 and 4800 EMAs in ATR units, the script filters out "flat" phases where long-term averages are compressed.
  • Timeframe Equivalence: The use of very long EMAs (2400 and 4800) is specifically calibrated for the H1 timeframe to reflect daily moving average biases without switching charts.
  • Exit Logic: The strategy exits a position if the trend degrades, specifically when the +DI crosses below the -DI or the price closes below the EMA63.

Settings

  • UI Compact (Mobile): Toggles between a detailed desktop table and a simplified mobile-friendly dashboard.
  • ADX Length: Set to 9 by default to determine trend strength.
  • EMA Lengths: Includes short-term (63), mid-term (2400), and long-term (4800) periods for multi-timeframe alignment.
  • ATR Length & Gap: Controls the sensitivity of the structural filter used to detect trend separation.

FAQ

How do I use the dashboard?

The dashboard displays green or red indicators for each of the six strategy conditions. When all indicators are green, a "BUY" signal is generated.

What timeframes are recommended?

The script is optimized for the H1 timeframe due to the specific calibration of the long-term EMA filters (2400/4800).

How can I access 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.