Supertrend
Apr 7, 2020

The Supertrend indicator provides a trend-following methodology based on the Average True Range (ATR) to help traders identify potential entry and exit points through a trailing stop mechanism.
Usage
The Supertrend is used to identify the current market direction and potential trend reversals. When the price is above the indicator line, the trend is considered bullish (green), and when the price is below the line, the trend is considered bearish (red).
Traders often use the crossover points as signals:
- Buy Signals: Triggered when the price closes above the trailing stop line, causing the indicator to flip below the price and turn green.
- Sell Signals: Triggered when the price closes below the trailing stop line, causing the indicator to flip above the price and turn red.
This tool is applicable across various asset classes including equities, forex, and crypto. While effective in trending markets, users should be cautious during sideways or range-bound price action where "whipsaws" may occur.
Details
The indicator calculates its value using a combination of the asset's volatility and a central source price (defaulting to the median price, HL2). The core logic relies on the Average True Range (ATR) multiplied by a user-defined factor. This version offers flexibility in how volatility is smoothed, allowing traders to choose between the standard RMA (Relative Moving Average) or an SMA (Simple Moving Average) for the ATR calculation. By adjusting the multiplier and period, users can make the indicator more or less sensitive to price fluctuations.
Settings
Main Settings
- ATR Period: Defines the lookback period used to calculate the Average True Range.
- Source: The price input used for calculations (e.g., Close, HL2).
- ATR Multiplier: The coefficient applied to the ATR value to determine the distance of the trailing stop from the price.
- Change ATR Calculation Method?: A toggle to switch between different smoothing methods for the ATR (RMA vs. SMA).
Visual Settings
- Show Buy/Sell Signals?: Enables or disables the display of "Buy" and "Sell" labels on the chart.
- Highlighter On/Off?: Toggles the background shading between the price and the Supertrend line.
FAQ
How do I access Supertrend?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the best timeframe for this indicator?
While it can be used on any timeframe (Intraday, Daily, Weekly), it is generally more reliable on higher timeframes where market noise is reduced.
Can I change the sensitivity of the signals?
Yes, by increasing the ATR Multiplier, the indicator becomes less sensitive (fewer signals, wider stops). Decreasing the multiplier makes it more sensitive to small price movements.
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.