OPEN-SOURCE SCRIPT
Adaptive Nexus Line

Adaptive Nexus Line
Overview
The Adaptive Nexus Line is not just another moving average. It's a next-generation, composite indicator designed to provide a comprehensive and visually intuitive baseline for trend analysis and momentum.
At its core, the Adaptive Nexus Line synthesizes a "cluster" of multiple moving averages into a single, cohesive line. This "average of averages" approach reduces market noise and provides a more stable and reliable representation of the trend than a traditional, single MA. The name reflects its core strengths: "Adaptive" for its intelligent Kalman filter smoothing, and "Nexus" because it serves as a central point, bringing together a wide array of moving average types.
________________________________________
Key Features
• Composite Engine: Instead of a single MA, the Adaptive Nexus Line averages a user-defined cluster of MAs (e.g., 20 MAs with lengths from 5 to 105). This significantly smooths out price action and reduces false signals.
• Universal MA Selection: The engine supports a comprehensive suite of moving average types, including SMA, EMA, WMA, HMA, VWMA, RMA, ZLMA, and ZMA.
• Momentum Gradient: The indicator's most unique feature is its visual momentum coloring. The line smoothly transitions from red (bearish momentum) through yellow (neutral/indecision) to green (bullish momentum) based on the real-time ratio of rising vs. falling MAs within the cluster.
• Change-Point Signals: A white dot is plotted at the very start of a color change, and a yellow dot is plotted at the end, providing clear signals of potential shifts in momentum.
• Multi-Timeframe (MTF) Support: View the Adaptive Nexus Line from any timeframe directly on your current chart (e.g., plot the 4H line on a 15m chart) to get a better perspective of the higher-level trend.
• Adaptive Kalman Filter: An optional, switchable Kalman filter is included to provide an additional layer of intelligent, adaptive smoothing to the final output line. Its sensitivity is fully adjustable.
________________________________________
Settings Explained
• Moving Average Settings: Control the core engine. Choose your preferred MA Type, the Number of MAs in the cluster, the Start Length, and the Step between lengths.
• Time Frame: Set the indicator to a higher timeframe for a broader market view. Leave blank to use your chart's current timeframe.
• Kalman Filter Settings: Toggle the Use Kalman Filter on or off. Adjust the Kalman Smoothing Period (higher = smoother) to fine-tune the adaptive smoothing to your preference.
Overview
The Adaptive Nexus Line is not just another moving average. It's a next-generation, composite indicator designed to provide a comprehensive and visually intuitive baseline for trend analysis and momentum.
At its core, the Adaptive Nexus Line synthesizes a "cluster" of multiple moving averages into a single, cohesive line. This "average of averages" approach reduces market noise and provides a more stable and reliable representation of the trend than a traditional, single MA. The name reflects its core strengths: "Adaptive" for its intelligent Kalman filter smoothing, and "Nexus" because it serves as a central point, bringing together a wide array of moving average types.
________________________________________
Key Features
• Composite Engine: Instead of a single MA, the Adaptive Nexus Line averages a user-defined cluster of MAs (e.g., 20 MAs with lengths from 5 to 105). This significantly smooths out price action and reduces false signals.
• Universal MA Selection: The engine supports a comprehensive suite of moving average types, including SMA, EMA, WMA, HMA, VWMA, RMA, ZLMA, and ZMA.
• Momentum Gradient: The indicator's most unique feature is its visual momentum coloring. The line smoothly transitions from red (bearish momentum) through yellow (neutral/indecision) to green (bullish momentum) based on the real-time ratio of rising vs. falling MAs within the cluster.
• Change-Point Signals: A white dot is plotted at the very start of a color change, and a yellow dot is plotted at the end, providing clear signals of potential shifts in momentum.
• Multi-Timeframe (MTF) Support: View the Adaptive Nexus Line from any timeframe directly on your current chart (e.g., plot the 4H line on a 15m chart) to get a better perspective of the higher-level trend.
• Adaptive Kalman Filter: An optional, switchable Kalman filter is included to provide an additional layer of intelligent, adaptive smoothing to the final output line. Its sensitivity is fully adjustable.
________________________________________
Settings Explained
• Moving Average Settings: Control the core engine. Choose your preferred MA Type, the Number of MAs in the cluster, the Start Length, and the Step between lengths.
• Time Frame: Set the indicator to a higher timeframe for a broader market view. Leave blank to use your chart's current timeframe.
• Kalman Filter Settings: Toggle the Use Kalman Filter on or off. Adjust the Kalman Smoothing Period (higher = smoother) to fine-tune the adaptive smoothing to your preference.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.