
A k-Nearest Neighbours machine learning strategy that predicts market moves by analyzing historic data and finding similar past market conditions to forecast future price directions.
Explore complementary indicator rolesHow it works
The kNN algorithm uses historic market data collected in three arrays: feature1, feature2, and directions. It identifies the k-nearest neighbors of current indicator values by comparing them to past market data.
By examining these similar historical points, the algorithm classifies the current market condition and predicts potential future price movements. The strategy works by finding patterns in past market behavior and using those similarities to make predictions about upcoming market trends
Why it may be useful
This machine learning approach provides traders with a systematic method to analyze market movements using historical data. By leveraging unsupervised learning techniques, kNN offers insights into potential future price directions without requiring complex mathematical models.
The strategy allows traders to test various indicators easily and assess their predictive value. Its simplicity and adaptability make it a valuable tool for understanding market dynamics and potentially improving trading decision-making processes
When to explore it
The kNN strategy works best when analyzing markets with clear historical patterns and sufficient data points. It is particularly effective for traders seeking to understand market trends across different timeframes, from minutes to days.
The strategy is most reliable when applied to liquid markets with consistent trading volumes. Traders should use it as a complementary tool alongside other technical analysis methods, not as a standalone trading signal
Keep exploring
What we’ve verified
Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.
General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.



![AI Momentum [YinYang] chart preview](https://s3.tradingview.com/n/NKUsm5uR.png?v=1695686677)

![Machine Learning | Adaptive Trend Signals [Bitwardex] chart preview](https://s3.tradingview.com/b/bOblGfmR.png?v=1745594697)