OPEN-SOURCE SCRIPT

Breakout & Distribution Detector

How the Script Works:

1. Bollinger Bands:
• The upper and lower Bollinger Bands are used to detect volatility and potential breakouts. When the price closes above the upper band, it’s considered a bullish breakout. When the price closes below the lower band, it’s a bearish breakout.
2. RSI (Relative Strength Index):
• The RSI is used for momentum confirmation. A bullish breakout is confirmed if the RSI is above 50, and a bearish breakout is confirmed if the RSI is below 50.
• If the RSI enters overbought (above 70) or oversold (below 30) levels, it signals a distribution phase, indicating the market may be ready to reverse or consolidate.
3. Moving Average:
• A simple moving average (SMA) of 20 periods is used to ensure we’re trading in the direction of the trend. Breakouts above the upper Bollinger Band are valid if the price is above the SMA, while breakouts below the lower Bollinger Band are valid if the price is below the SMA.
4. Signals and Alerts:
• BUY Signal: A green “BUY” label appears below the candle if a bullish breakout is detected.
• SELL Signal: A red “SELL” label appears above the candle if a bearish breakout is detected.
• Distribution Phase: The background turns purple if the market enters a distribution phase (RSI in overbought or oversold territory).
• Alerts: You can set alerts based on these conditions to get notifications for breakouts or when the market enters a distribution phase.
Bollinger Bands (BB)Exponential Moving Average (EMA)

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é