PROTECTED SOURCE SCRIPT
MACD_V5 with Divergence

https://www.tradingview.com/x/4JBFTvK6/
MACD_V5 with Divergence is an EMA-based Bull/Bear Power oscillator. It computes
BBP = (high − EMA(close, Length)) + (low − EMA(close, Length)), plots BBP as columns with a zero line, and overlays a slope-colored BBP moving average. The script flags fresh Overbought/Oversold extremes within a rolling window and draws dashed levels, and it detects Regular and Hidden divergences using confirmed pivots (non-repainting after confirmation; appears with an lbR-bar delay).
Built-in alerts fire on OB/OS prints and on BBP ↔ BBP-MA crosses (use “Any alert() function call”).
How to use
• Treat crosses as triggers and divergence as confirmation.
• Always read signals in the context of the higher-timeframe or a price-based trend filter (e.g., EMA on price).
• Backtest and paper trade before going live.
Inputs: EMA Length, Highest/Lowest Period, Overbought/Oversold levels, BBP MA Length.
Works on any symbol and timeframe.
EMA-based Bull/Bear Power oscillator (BBP) with slope-colored MA. Marks fresh OB/OS extremes and detects Regular/Hidden divergences via confirmed pivots (no repaint after confirmation; lbR delay). Alerts on OB/OS and BBP ↔ MA cross. Use crosses to trigger, divergences to confirm, and trend context to filter. Inputs: Length, Period, OB/OS, MA Length.
EMA-based BBPower oscillator with OB/OS extremes, slope MA, and regular/hidden divergence. Alerts on OB/OS and BBP↔MA cross. Use crosses to trigger, divergences to confirm. Pivot signals show after lbR delay.
Initial public release
EMA-based BBP with slope-colored MA
OB/OS extreme labels + dashed levels
Regular & Hidden divergence (confirmed pivots; non-repainting after confirm)
Built-in alerts for OB/OS and BBP↔MA cross
MACD_V5 with Divergence is an EMA-based Bull/Bear Power oscillator. It computes
BBP = (high − EMA(close, Length)) + (low − EMA(close, Length)), plots BBP as columns with a zero line, and overlays a slope-colored BBP moving average. The script flags fresh Overbought/Oversold extremes within a rolling window and draws dashed levels, and it detects Regular and Hidden divergences using confirmed pivots (non-repainting after confirmation; appears with an lbR-bar delay).
Built-in alerts fire on OB/OS prints and on BBP ↔ BBP-MA crosses (use “Any alert() function call”).
How to use
• Treat crosses as triggers and divergence as confirmation.
• Always read signals in the context of the higher-timeframe or a price-based trend filter (e.g., EMA on price).
• Backtest and paper trade before going live.
Inputs: EMA Length, Highest/Lowest Period, Overbought/Oversold levels, BBP MA Length.
Works on any symbol and timeframe.
EMA-based Bull/Bear Power oscillator (BBP) with slope-colored MA. Marks fresh OB/OS extremes and detects Regular/Hidden divergences via confirmed pivots (no repaint after confirmation; lbR delay). Alerts on OB/OS and BBP ↔ MA cross. Use crosses to trigger, divergences to confirm, and trend context to filter. Inputs: Length, Period, OB/OS, MA Length.
EMA-based BBPower oscillator with OB/OS extremes, slope MA, and regular/hidden divergence. Alerts on OB/OS and BBP↔MA cross. Use crosses to trigger, divergences to confirm. Pivot signals show after lbR delay.
Initial public release
EMA-based BBP with slope-colored MA
OB/OS extreme labels + dashed levels
Regular & Hidden divergence (confirmed pivots; non-repainting after confirm)
Built-in alerts for OB/OS and BBP↔MA cross
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.