PROTECTED SOURCE SCRIPT
AI Volume-KNN SuperTrend - by Trading Pine Lab

๐ฌ๐ง English
The AI Volume-KNN SuperTrend is an advanced trading strategy that combines the robustness of the SuperTrend indicator with a machine-learning inspired KNN (K-Nearest Neighbors) model. The baseline is built from a volume-weighted moving average with ATR-based bands, while the KNN classifier validates trend direction in real time. This dual-layer approach reduces false signals and improves trend confirmation.
Entries are triggered when the SuperTrend flips direction and the KNN classifier confirms the move as bullish or bearish. Exits are managed with a dynamic trailing stop, automatically adjusting to SuperTrend ยฑ ATR ร factor. The strategy includes visual markers for AI start/continuation signals, as well as customizable coloring for bullish, bearish, and neutral phases.
All parameters are fully configurable:
-Trading direction filter: Long / Short / Both.
-KNN settings: number of neighbors (K), dataset size (N).
-Label smoothing: price and SuperTrend smoothing lengths (WMAs).
-SuperTrend settings: length, ATR factor, and moving average source.
-Visualization: trend markers and per-trend coloring.
The AI Volume-KNN SuperTrend is an advanced trading strategy that combines the robustness of the SuperTrend indicator with a machine-learning inspired KNN (K-Nearest Neighbors) model. The baseline is built from a volume-weighted moving average with ATR-based bands, while the KNN classifier validates trend direction in real time. This dual-layer approach reduces false signals and improves trend confirmation.
Entries are triggered when the SuperTrend flips direction and the KNN classifier confirms the move as bullish or bearish. Exits are managed with a dynamic trailing stop, automatically adjusting to SuperTrend ยฑ ATR ร factor. The strategy includes visual markers for AI start/continuation signals, as well as customizable coloring for bullish, bearish, and neutral phases.
All parameters are fully configurable:
-Trading direction filter: Long / Short / Both.
-KNN settings: number of neighbors (K), dataset size (N).
-Label smoothing: price and SuperTrend smoothing lengths (WMAs).
-SuperTrend settings: length, ATR factor, and moving average source.
-Visualization: trend markers and per-trend coloring.
Geschรผtztes Skript
Dieses Script ist als Closed-Source verรถffentlicht. Sie kรถnnen es kostenlos und ohne Einschrรคnkungen verwenden โ erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Verรถffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlรคgen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Geschรผtztes Skript
Dieses Script ist als Closed-Source verรถffentlicht. Sie kรถnnen es kostenlos und ohne Einschrรคnkungen verwenden โ erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Verรถffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlรคgen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.