Supertrend with Buy/Sell Signals
Jan 21, 2025

The Supertrend with Buy/Sell Signals indicator is a trend-following tool designed to help traders identify market direction and potential entry or exit points through dynamic volatility-based levels.
Usage
The Supertrend with Buy/Sell Signals can be used to distinguish between bullish and bearish market regimes. When the price is above the dynamic trend line, the indicator colors the line green, suggesting a bullish bias. Conversely, when the price is below the trend line, it turns red, suggesting a bearish bias.
- Buy Signals: A green "BUY" label appears below the price bar when the market closes above the previous Supertrend resistance level.
- Sell Signals: A red "SELL" label appears above the price bar when the market closes below the previous Supertrend support level.
The tool is most effective in trending markets where it can capture extended moves. In sideways or range-bound markets, it may produce frequent signals as price fluctuates around the trend line.
Details
This script calculates its levels using the Average True Range (ATR) multiplied by a specific factor. The resulting bands act as a trailing stop-loss or dynamic support/resistance level.
Unlike a simple moving average, the Supertrend remains flat if volatility decreases and price does not make significant new highs or lows in the direction of the trend. This helps filter out minor price fluctuations. The implementation includes logic to ensure that the support level only moves up and the resistance level only moves down during their respective trends, preventing the line from widening due to temporary volatility spikes.
Settings
- ATR Period: Determines the lookback period used to calculate the Average True Range. Higher values result in a smoother, slower-reacting line.
- Multiplier: Sets the factor by which the ATR is multiplied. A higher multiplier places the Supertrend line further from the price, reducing sensitivity and filtering out "noise," while a lower multiplier makes the indicator more sensitive to price changes.
FAQ
How do I use the Buy/Sell signals?
Signals are triggered when the price crosses the Supertrend line. A crossover (moving above the line) generates a Buy signal, while a crossunder (moving below the line) generates a Sell signal.
Can I use this on any timeframe?
Yes, the Supertrend with Buy/Sell Signals can be applied to any timeframe. However, it is generally more reliable on higher timeframes (e.g., 1H, 4H, Daily) where trends are more established.
How do I access Supertrend with Buy/Sell Signals?
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.