OPEN-SOURCE SCRIPT

Market Flow Volatility Oscillator (AiBitcoinTrend)

The Market Flow Volatility Oscillator (AiBitcoinTrend) is a cutting-edge technical analysis tool designed to evaluate and classify market volatility regimes. By leveraging Gaussian filtering and clustering techniques, this indicator provides traders with clear insights into periods of high and low volatility, helping them adapt their strategies to evolving market conditions. Built for precision and clarity, it combines advanced mathematical models with intuitive visual feedback to identify trends and volatility shifts effectively.

snapshot

👽 How the Indicator Works

👾 Volatility Classification with Gaussian Filtering
The indicator detects volatility levels by applying Gaussian filters to the price series. Gaussian filters smooth out noise while preserving significant price movements. Traders can adjust the smoothing levels using sigma parameters, enabling greater flexibility:
  • Low Sigma: Emphasizes short-term volatility.
  • High Sigma: Captures broader trends with reduced sensitivity to small fluctuations.


👾 Clustering Algorithm for Regime Detection
The core of this indicator is its clustering model, which classifies market conditions into two distinct regimes:
  • Low Volatility Regime: Calm periods with reduced market activity.
  • High Volatility Regime: Intense periods with heightened price movements.

The clustering process works as follows:
  1. A rolling window of data is analyzed to calculate the standard deviation of price returns.
  2. Two cluster centers are initialized using the 25th and 75th percentiles of the data distribution.
  3. Each price volatility value is assigned to the nearest cluster based on its distance to the centers.
  4. The cluster centers are refined iteratively, providing an accurate and adaptive classification.


👾 Oscillator Generation with Slope R-Values
The indicator computes Gaussian filter slopes to generate oscillators that visualize trends:
  • Oscillator Low: Captures low-frequency market behavior.
  • Oscillator High: Tracks high-frequency, faster-changing trends.

The slope is measured using the R-value of the linear regression fit, scaled and adjusted for easier interpretation.

👽 Applications

👾 Trend Trading
When the oscillator rises above 0.5, it signals potential bullish momentum, while dips below 0.5 suggest bearish sentiment.
snapshot


👾 Pullback Detection
When the oscillator peaks, especially in overbought or oversold zones, provide early warnings of potential reversals.
snapshot


👽 Indicator Settings

👾 Oscillator Settings
Sigma Low/High: Controls the smoothness of the oscillators.
  • Smaller Values: React faster to price changes but introduce more noise.
  • Larger Values: Provide smoother signals with longer-term insights.

👾 Window Size and Refit Interval
Window Size: Defines the rolling period for cluster and volatility calculations.
  • Shorter windows: adapt faster to market changes.
  • Longer windows: produce stable, reliable classifications.


Disclaimer: This information is for entertainment purposes only and does not constitute financial advice. Please consult with a qualified financial advisor before making any investment decisions.
clusteringgaussianfilterpullbacktradingregimedetectionstatisticsTrend AnalysistrendtradingVolatilityvolatilityoscillatorvolatilitytrading

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


Adam at AI Bitcoin Trend
We are the Quants!
Famous on Threads!
aibitcointrend.com/
Aussi sur:

Clause de non-responsabilité