All indicators

AI SuperTrend Clustering Oscillator

By LuxAlgoAug 16, 2023

Static chart image
OscillatorsMachine Learning

The AI SuperTrend Clustering Oscillator offers a powerful tool for traders by delivering insights into market trends through an advanced algorithm. By leveraging the SuperTrend indicators and clustering techniques, it identifies the most bullish, average, and bearish trends, making it an essential trading indicator for any strategy. This oscillator simplifies complex data into actionable intelligence, showcasing potential trends and reversals across trading platforms like TradingView, MetaTrader, and NinjaTrader.

This trading tool builds on the success of the SuperTrend AI indicator, expanding on its capabilities by employing k-means clustering. For those who want a deeper dive into the mechanics of the SuperTrend AI indicator, additional information is accessible through this link.

How to Trade with AI SuperTrend Clustering Oscillator?

indicator image

The AI SuperTrend Clustering Oscillator is segmented into three primary components: the bullish output, the bearish output, and the consensus output. The bullish output represents the strongest upward movements, the bearish output captures downward trends, whereas the consensus output lies between these two and signals the prevailing trend direction.

When the consensus output exceeds zero, it suggests an uptrend, whereas a value below zero points to a downtrend. By adjusting the minimum and maximum factors, traders can bias the results towards either long-term or short-term trends, offering strategic flexibility.

indicator image

Identifying strong trends becomes intuitive when the bullish and bearish outputs diverge in sentiment. A bullish trend is confirmed when the bearish output remains above zero, while a bearish trend is corroborated if the bullish output dips below zero. This contrast provides a robust signal for developing trading strategies.

indicator image

Pay attention when the consensus output's indicated trend direction is contradicted by the bullish or bearish outputs. This tension may signal a possible market reversal or retracement, offering traders an early warning to adjust their strategies.

Indicator Construction Details

Built on the principle of clustering, the AI SuperTrend Clustering Oscillator isolates three clusters from the variance between the closing price and multiple SuperTrend calculations with varied factors. It returns the centroid of each cluster, having conducted this process over all historical data points.

The cluster with the highest values corresponds to the most bullish data, formed by SuperTrends yielding the greatest differences. Conversely, the lowest cluster captures the most bearish data. The consensus cluster includes differences not substantial enough to fit into the first two categories, offering a balanced market perspective.

Key Settings for AI SuperTrend Clustering Oscillator

  • ATR Length: Defines the ATR period used in calculating SuperTrends.
  • Factor Range: Sets the boundary of minimum and maximum factor values for SuperTrend calculations.
  • Step: Determines the increments within the factor range for precise adjustments.
  • Smooth: Controls the level of smoothness applied to the indicator outputs.

Performance Optimization Settings

These settings are crucial for optimizing the script’s performance and ensuring its smooth operation across various trading conditions:

  • Maximum Iteration Steps: Specifies the upper limit for iterations in centroid calculation, balancing load time and clustering quality.
  • Historical Bars Calculation: Determines the number of bars over which the calculations are executed, impacting the script’s historical data reach.

FAQ

How can I access the AI SuperTrend Clustering Oscillator?

You can get access to the AI SuperTrend Clustering Oscillator on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What does it mean when the indicator's outputs are contradictory?

When the bullish and bearish outputs differ, it might indicate a stronger underlying trend or potential reversal, helping traders to make informed decisions.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.