Bollinger Bands + Moving Average (BBMA Oma Ally)
Aug 6, 2021

The Bollinger Bands + Moving Average (BBMA Oma Ally) indicator provides a comprehensive multi-layered analysis framework by combining volatility bands with specific moving averages to identify trend exhaustion and potential entry points.
Usage
The Usage section describes how the script can be used to identify specific market phases and setups. This indicator is based on the BBMA Oma Ally technique, which categorizes market behavior into three primary stages:
- Extrem (Signal): This serves as an early warning that a current trend is reaching exhaustion. It occurs when a Moving Average moves outside of the Top or Low Bollinger Bands. A valid Extrem signal requires a reversal candle and a retest candle (entry) at the MA5 or the candle body.
- MHV (Market Loss Volume): This setup indicates a loss of momentum following an Extrem signal. It is characterized by the inability of the price to close outside the Bollinger Bands. Validation occurs when a directional candlestick (CSA) appears, signaling a potential long-distance trend change.
- Re-entry: This is used to join an existing trend. A strong re-entry occurs when the price retraces but fails to close past the MA5/MA10 and the Mid BB. Traders typically wait for a second candle to confirm the entry after the first candle validates the re-entry zone.
Details
The script integrates several technical components to provide dynamic support and resistance:
- Bollinger Bands: Act as the primary boundaries for price action. Breaks outside these bands suggest high momentum, while failures to break them (MHV) suggest trend weakness.
- High/Low Moving Averages: The script utilizes two sets of MAs applied to the Highs (MA5/MA10) and two sets applied to the Lows (MA5/MA10). These act as tracking mechanisms for price Extremes and Re-entry zones.
- MA50 (Baseline): A 50-period Exponential Moving Average is used as a higher-level trend filter to determine the overall market direction.
- Alert Integration: The script includes automated alerts for price interactions with the Upper/Lower Bollinger Bands and the MA50 to assist in monitoring the setups in real-time.
Settings
Moving Averages
- MA1-MA4 Settings: Allows customization of the period, calculation method (SMA or EMA), and source (High/Low/Close) for the four short-term MAs used in the BBMA technique.
- MA5 Period: Sets the length for the long-term trend filter (default 50).
- MA5 Type: Selects between SMA and EMA for the long-term filter.
Bollinger Bands
- BB Length: Determines the lookback period for the Bollinger Bands basis line (default 20).
- BB Source: Sets the price input used for band calculations (default Close).
- BB StdDev: Adjusts the multiplier for the standard deviation, controlling the width of the bands.
- BB Offset: Shifts the Bollinger Bands forward or backward on the X-axis.
FAQ
How do I identify a trend reversal using this tool?
A reversal is typically identified through the sequence of an Extrem signal (MA outside the bands) followed by an MHV setup (price failing to close outside the bands) and a subsequent directional candle.
What is the purpose of the MA5 and MA10 applied to High/Low?
These moving averages create a "channel" that identifies entry zones. In a downtrend, the MA Highs act as resistance for re-entries, while in an uptrend, the MA Lows act as support.
How can I access the BBMA Oma Ally indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.