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.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had โ ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had โ ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.