No lag SuperTrend
Jul 18, 2024

The No lag SuperTrend indicator provides a more responsive trend-following mechanism by replacing standard ATR calculations with adaptive and low-lag smoothing techniques.
Usage
The No lag SuperTrend is used to identify the current market trend and potential reversal points. Like a standard Supertrend, it plots a line that stays below price during an uptrend (green) and above price during a downtrend (red).
Users can utilize the script for:
- Trend Confirmation: Identify the prevailing direction of the market to align trades with the momentum.
- Entry Signals: Optional labels can be enabled to highlight the exact bar where the trend flips.
- Exit Strategy: The indicator line can act as a trailing stop-loss level.
- Filtering: Use the "KAMA" setting for long-term trending environments or "HMA" for faster scalping responsiveness.
Details
Traditional Supertrend indicators often suffer from lag because they rely on simple or exponential moving averages for ATR calculations. This script addresses lag through two specific methods:
- Kaufman’s Adaptive Moving Average (KAMA): This adjusts its smoothing based on the Efficiency Ratio (ER), becoming faster during trending periods and slower during noisy, sideways price action.
- Hull Moving Average (HMA): Known for its ability to reduce lag while maintaining smoothness, providing faster reactions to price spikes.
Settings
- ATR Period: The lookback period used for the ATR calculation.
- Factor: The multiplier applied to the ATR to determine the distance of the band from the price.
- ATR Calculation Type: Choose between "KAMA" (Adaptive) or "HMA" (Hull) for the underlying volatility calculation.
- Buy/Sell Signals?: Toggles the visibility of "BUY" and "SELL" labels on the chart.
- Change candles to match trend: When enabled, the chart's candle colors will update to reflect the current trend direction.
FAQ
How do I access No lag SuperTrend?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the difference between the KAMA and HMA settings?
KAMA is adaptive and filters out more noise in choppy markets, while HMA is designed for maximum speed and is often preferred for fast-paced scalping.
Can I set alerts for trend changes?
Yes, the script includes built-in alert conditions for trend flips (Downtrend to Uptrend and vice versa) which can be configured via the TradingView Alert menu.
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.