LuxAlgo

AI Channels (Clustering) [LuxAlgo]

LuxAlgo Wizard מעודכן   
The AI Channels indicator is constructed based on rolling K-means clustering, a common machine learning method used for clustering analysis. These channels allow users to determine the direction of the underlying trends in the price.

We also included an option to display the indicator as a trailing stop from within the settings.

🔶 USAGE


Each channel extremity allows users to determine the current trend direction. Price breaking over the upper extremity suggesting an uptrend, and price breaking below the lower extremity suggesting a downtrend. Using a higher Window Size value will return longer-term indications.


The "Clusters" setting allows users to control how easy it is for the price to break an extremity, with higher values returning extremities further away from the price.

The "Denoise Channels" is enabled by default and allows to see less noisy extremities that are more coherent with the detected trend.


Users who wish to have more focus on a detected trend can display the indicator as a trailing stop.

🔹Centroid Dispersion Areas

Each extremity is made of one area. The width of each area indicates how spread values within a cluster are around their centroids. A wider area would suggest that prices within a cluster are more spread out around their centroid, as such one could say that it is indicative of the volatility of a cluster.

Wider areas around a specific extremity can indicate a larger and more spread-out amount of prices within the associated cluster. In practice price entering an area has a higher chance to break an associated extremity.

🔶 DETAILS


The indicator performs K-means clustering over the most recent Window Size prices, finding a number of user-specified clusters. See here to find more information on cluster detection.

The channel extremities are returned as the centroid of the lowest, average, and highest price clusters.

K-means clustering can be computationally expensive and as such we allow users to determine the maximum number of iterations used to find the centroids as well as the number of most historical bars to perform the indicator calculation. Do note that increasing the calculation window of the indicator as well as the number of clusters will return slower results.

🔶 SETTINGS

  • Window Size: Amount of most recent prices to use for the calculation of the indicator.
  • Clusters": Amount of clusters detected for the calculation of the indicator.
  • Denoise Channels: When enabled, return less noisy channels extremities, disabling this setting will return the exact centroids at each time but will produce less regular extremities.
  • As Trailing Stop: Display the indicator as a trailing stop.

    🔹 Optimization

    This group of settings affects the runtime performance of the script.

  • Maximum Iteration Steps: Maximum number of iterations allowed for finding centroids. Excessively low values can return a better script load time but poor clustering.
  • Historical Bars Calculation: Calculation window of the script (in bars).
הערות שחרור:
Fixed an issue preventing the indicator from appearing on certain tickers/timeframes

Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?