SuperTrend
Jan 22, 2016

The SuperTrend indicator is a trend-following tool designed to help traders identify the prevailing market direction and potential reversal points by plotting a dynamic line based on price volatility.
Usage
The Usage of the SuperTrend involves tracking the position of the indicator dots relative to the price action. When the price is above the dots, the trend is considered bullish (uptrend), and the dots are typically colored green. Conversely, when the price falls below the dots, the trend is considered bearish (downtrend), and the dots appear red.
Traders often use this tool to:
- Identify entry points when the trend changes color (e.g., from red to green).
- Set trailing stop-losses based on the current level of the indicator.
- Stay on the "right side" of the market during prolonged trending phases.
Details
The script is based on the original SuperTrend concept by Olivier Seban. It calculates upper and lower bands using the Average True Range (ATR) multiplied by a specific factor.
The core logic involves:
- ATR Calculation: Determining the average volatility over a lookback period.
- Band Placement: Calculating potential bands above and below the median price (HL2).
- Trend Locking: The bands only move in the direction of the trend until a price crossover occurs. If the price closes on the opposite side of the current band, the trend flips, and the new band is established.
Settings
- Length: The lookback period for the Average True Range (ATR) calculation. A higher value results in a smoother, slower-reacting indicator.
- Multiplier: The factor by which the ATR is multiplied to set the distance of the bands from the price. A higher multiplier reduces the number of false signals but increases the lag.
FAQ
How do I use the SuperTrend for trade entries?
You can use the color change of the dots as a signal; a green dot indicates a potential long entry, while a red dot indicates a potential short entry.
Can I adjust the sensitivity of the indicator?
Yes, by modifying the Length and Multiplier settings. Lowering these values makes the script more sensitive to price changes, while increasing them filters out minor price fluctuations.
How can I access the 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.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.