Dynamic Factor Supertrend
Dec 17, 2024

The Dynamic Factor Supertrend indicator is a trend-following tool that adaptively adjusts its volatility bands based on price movement to provide more reliable signals and minimize false breakouts. By introducing a dynamic scaling mechanism to the traditional Average True Range (ATR) calculation, it offers a more resilient approach to identifying market trends in volatile environments.
Usage
The Dynamic Factor Supertrend can be used to identify trend direction and potential reversal points. When the price is above the trend line, an uptrend is indicated (typically colored green); when the price is below the trend line, a downtrend is indicated (typically colored red).
- Trend Identification: Use the color and position of the line to determine the current market bias.
- Volatility Adaptation: Unlike a standard Supertrend, this version adjusts its distance from price based on the Dynamic Factor setting. If the price moves significantly beyond the standard ATR multiplier, the indicator recalculates the gap to better reflect the current volatility.
- Signal Responsiveness: A lower Dynamic Factor makes the line more responsive to price changes, potentially offering earlier signals, whereas a higher value provides more stability and filters out minor price fluctuations.
Details
The script enhances the classic Supertrend logic by assessing the distance between the price and the existing Supertrend line. If the price exceeds the typical distance defined by the ATR Factor, a recalculation occurs:
- The script calculates a "Distance Factor" based on the gap between price extremes (highest high or lowest low) and the starting point of the current trend segment.
- A weighted adjustment is applied using the Dynamic Factor input.
- This resulting "dynamicFactor" is then used to update the upper and lower bands, allowing the indicator to "stretch" or "contract" more intelligently than a fixed-multiplier system.
Settings
- ATR Length: The lookback period used to calculate the Average True Range.
- ATR Factor: The base multiplier applied to the ATR to determine the initial distance of the Supertrend line.
- Dynamic Factor: A value between 0.01 and 0.99 that controls the intensity of the dynamic adjustment. Higher values allow for more significant adjustments to the base factor based on price extension.
FAQ
How do I interpret the trend changes?
A trend change occurs when the price crosses the Supertrend line. A cross above the line signals a shift to a bullish trend, while a cross below the line signals a shift to a bearish trend.
How does this differ from a regular Supertrend?
A regular Supertrend uses a static multiplier. The Dynamic Factor Supertrend uses an adaptive multiplier that changes based on how far price has moved away from the trend line, helping to reduce noise during choppy market conditions.
How can I access this indicator?
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.