PROTECTED SOURCE SCRIPT

BBMA by RWBTradeLab

21
BBMA by RWBTradeLab

A clean, non-repainting BBMA indicator built for traders who combine Bollinger Bands with Linear Weighted Moving Averages and EMA to track volatility expansion, price extremes, and confirmed breakout behavior using closed candles only.

What this indicator does

This script combines Bollinger Bands (20, 2) with Linear Weighted Moving Averages (LWMA) and a 50 EMA to help traders identify high-probability price extension zones and confirmed BBMA break conditions—without repainting.

All calculations and alerts are based strictly on closed candles (no running-bar signals).

Core components

Bollinger Bands

*Period: 20
*Deviations: 2
*Apply to: Close
*Visual shift supported (default 0)
*Clean white band structure for clarity

Linear Weighted Moving Averages (LWMA)

*LW MA 5 Low
*LW MA 10 Low
*LW MA 5 High
*LW MA 10 High

These weighted averages react faster to recent price action and help define dynamic BBMA zones.

Exponential Moving Average

*EMA 50
*Apply to: Close
*Method: Exponential

Used as a higher-timeframe trend and structure reference.

BBMA alert logic (closed candle only)

Lower BBMA Break
Triggered when:

*LW MA 5 Low crosses below the Lower Bollinger Band
*The candle closes below the Lower Bollinger Band
*LW MA 5 Low remains below the Lower Bollinger Band after close

Upper BBMA Break
Triggered when:

*LW MA 5 High crosses above the Upper Bollinger Band
*The candle closes above the Upper Bollinger Band
*LW MA 5 High remains above the Upper Bollinger Band after close

⚠️ No alerts are generated on running candles—only on confirmed bar close.

Visuals on chart

*Bollinger Bands plotted in clean white
*LW MAs color-coded for easy distinction
*EMA 50 plotted in green
*Optional show/hide toggles for BB, LW MAs, and EMA

Alerts
Built-in alerts trigger only on candle close:
*BBMA Lower Break (confirmed)
*BBMA Upper Break (confirmed)
Designed for reliable discretionary trading and automation without repainting issues.

Key settings

*BB Period & Deviations
*LW MA periods (5 & 10, High / Low)
*EMA period
*Visual shift for Bollinger Bands
*Individual visibility toggles

Non-repainting confirmation

All calculations, plots, and alerts are based on confirmed candles only.
No running-bar logic → no repainting.


Disclaimer

This indicator is a technical analysis tool, not financial advice.
Trading involves risk—always use proper risk management and confirm signals with your own analysis.

Creator: RWBTradeLab
If you find this indicator useful, please leave a like ⭐ and share your feedback.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.