PROTECTED SOURCE SCRIPT
AI KNN-Dual SuperTrend MTF - by Trading Pine Lab

🇬🇧
The AI KNN-Dual SuperTrend MTF is a next-generation trading strategy that merges two higher-timeframe SuperTrends with dual KNN (K-Nearest Neighbors) classifiers, an ADX/DMI filter, and a Pivot Percentile bias module. This layered architecture ensures stronger signal confirmation by requiring consensus across AI models, multi-timeframe SuperTrends, and statistical filters.
Entries occur only when both SuperTrends align with bullish or bearish KNN labels, while the ADX/DMI filter validates momentum. Exits are managed dynamically with adaptive trailing stops (ST ± ATR × factor) or when market conditions flip according to percentile bias.
All parameters are fully configurable:
-Trading direction filter: Long / Short / Both.
-KNN classifiers: neighbors (K), dataset size (N), smoothing lengths.
-Dual SuperTrend: higher timeframes, ATR length, ATR factor, baseline type.
-ADX/DMI filter: customizable length and timeframe.
-Pivot Percentile module: multi-scale statistical bias.
-Visualization: AI markers, ribbons, aura lines, and per-trend coloring.
The AI KNN-Dual SuperTrend MTF is a next-generation trading strategy that merges two higher-timeframe SuperTrends with dual KNN (K-Nearest Neighbors) classifiers, an ADX/DMI filter, and a Pivot Percentile bias module. This layered architecture ensures stronger signal confirmation by requiring consensus across AI models, multi-timeframe SuperTrends, and statistical filters.
Entries occur only when both SuperTrends align with bullish or bearish KNN labels, while the ADX/DMI filter validates momentum. Exits are managed dynamically with adaptive trailing stops (ST ± ATR × factor) or when market conditions flip according to percentile bias.
All parameters are fully configurable:
-Trading direction filter: Long / Short / Both.
-KNN classifiers: neighbors (K), dataset size (N), smoothing lengths.
-Dual SuperTrend: higher timeframes, ATR length, ATR factor, baseline type.
-ADX/DMI filter: customizable length and timeframe.
-Pivot Percentile module: multi-scale statistical bias.
-Visualization: AI markers, ribbons, aura lines, and per-trend coloring.
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.