OPEN-SOURCE SCRIPT

BB phases

This indicator is designed to visually represent different market phases based on Bollinger Bands (BB) and provide insights into potential bullish and bearish signals. Let's break down what the indicator does:

The indicator smoothly transitions from the "squeeze" phase to "bullish" or "bearish" phases based on specific price conditions. Here's a more detailed explanation of how this transition occurs:
  1. Squeeze Phase: The "squeeze" phase is identified when the closing price is within the range between the upper Bollinger Band (upper BB) and the lower Bollinger Band (lower BB).
  2. Transition to Bullish Phase: The transition from "squeeze" to "bullish" phase occurs when the price closes above the upper BB. The bullish phase will last while the price hasn't closed below the middle BB.
  3. Transition to Bearish Phase: Conversely, the transition from "squeeze" to "bearish" phase occurs when the price closes below the lower BB. The bearish phase will last while the price hasn't closed above the middle BB.


Another feature of the indicator is to display bearish/bullish triangles when the price reintegrate the bollinger bands after it previously breaked it. For example if the price closes below the lower BB and then the next candle in above the lower BB, a bullish triangle will be displayed.
Bollinger Bands (BB)Volatility

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 ?

Clause de non-responsabilité