AI Channels (Clustering)
By LuxAlgoAug 30, 2023
The AI Channels indicator, crafted using rolling K-means clustering, empowers traders by providing insights into market trends. This machine-learning-based tool presents channels that help traders discern the direction of trends based on price movements.
Moreover, the indicator can be configured to operate as a trailing stop, offering additional flexibility in trading strategies.
How to Trade the AI Channels Indicator?
Each extremity of the channel plays a crucial role in revealing the current trend. When the price breaches the upper extremity, it suggests an uptrend; conversely, dropping below the lower extremity signals a downtrend. Adjusting the Window Size value can help tailor observations to longer-term trends.
The "Clusters" setting influences how easily the price can penetrate an extremity. Higher values position extremities further from the price. The default "Denoise Channels" setting is useful for minimizing noise, thereby aligning more consistently with the detected trend.
For traders focused on highlighting detected trends, the indicator can be depicted as a trailing stop.
Centroid Dispersion Areas Explained
Extremities are composed of areas whose width reflects the dispersion of values around cluster centroids. A broader area suggests a greater price spread within a cluster, hinting at cluster volatility.
Wide areas around an extremity suggest a dispersed price spread within that cluster. In practical terms, when the price enters these areas, it increases the likelihood of breaking through an extremity.
AI Channels Indicator Details
Conducting K-means clustering over the latest Window Size prices, the indicator pinpoints a user-defined number of clusters. The channel extremities represent the centroids of the lowest, average, and highest price clusters. Explore more on cluster detection.
Given the computational intensity of K-means clustering, users can dictate the maximum iterations to find centroids and the historical span for the indicator's calculations. Be aware that expanding the calculation window or cluster count can decelerate results.
Fine-Tuning Your Settings
- Window Size: Determines the amount of recent prices for indicator calculations.
- Clusters: Specifies the count of clusters for indicator calculations.
- Denoise Channels: Offers less noise in channel extremities by default. Disabling provides exact centroids but with irregular extremities.
- As Trailing Stop: Enables the indicator's display as a trailing stop.
Enhance Performance
These settings impact the script's runtime efficiency:
- Maximum Iteration Steps: Limits iterations for finding centroids. Lower values boost script load time but may impair clustering quality.
- Historical Bars Calculation: Defines the script's calculation window, measured in bars.
FAQ
How can I access the AI Channels indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
The Library is free. Quant makes it yours.
Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.
