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)

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항