OPEN-SOURCE SCRIPT
BBMA Enhanced Pro - Multi-Timeframe Band Breakout Strategy

Short Title: BBMA Pro
Overview
The BBMA Enhanced Pro is a professional-grade trading indicator that builds on the Bollinger Bands Moving Average (BBMA) strategy, pioneered by Omar Ali, a Malaysian forex trader and educator. Combining Bollinger Bands with Weighted Moving Averages (WMA), this indicator identifies high-probability breakout and reversal opportunities across multiple timeframes. With advanced features like multi-timeframe Extreme signal detection, eight professional visual themes, and a dual-mode dashboard, it’s designed for traders seeking precision in trending and consolidating markets. Optimized for dark chart backgrounds, it’s ideal for forex, stocks, and crypto trading.
History
The BBMA strategy was developed by Omar Ali (BBMA Oma Ally) in the early 2010s, gaining popularity in the forex trading community, particularly in Southeast Asia. Building on John Bollinger’s Bollinger Bands, Omar Ali integrated Weighted Moving Averages and a multi-timeframe approach to create a structured system for identifying reversals, breakouts, and extreme conditions. The BBMA Enhanced Pro refines this framework with modern features like real-time dashboards and customizable visualizations, making it accessible to both novice and experienced traders.
Key Features
How It Works
Why Multi-Timeframe Extremes Matter
The BBMA Enhanced Pro’s multi-timeframe approach is rare and powerful. When the higher timeframe shows an Extreme signal followed by a similar signal on the current timeframe, it suggests the market is following the HTF’s trend or entering a consolidation phase. For example:
Usage Instructions
Trading Example
Customization Options

Notes
AuthorEnhanced Professional Edition, inspired by Omar Ali’s BBMA strategy
Version: 6.0 Pro - Simplified
Last Updated: September 2025
License: Mozilla Public License 2.0
We’d love to hear your feedback! Share your thoughts or questions in the comments below.
Overview
The BBMA Enhanced Pro is a professional-grade trading indicator that builds on the Bollinger Bands Moving Average (BBMA) strategy, pioneered by Omar Ali, a Malaysian forex trader and educator. Combining Bollinger Bands with Weighted Moving Averages (WMA), this indicator identifies high-probability breakout and reversal opportunities across multiple timeframes. With advanced features like multi-timeframe Extreme signal detection, eight professional visual themes, and a dual-mode dashboard, it’s designed for traders seeking precision in trending and consolidating markets. Optimized for dark chart backgrounds, it’s ideal for forex, stocks, and crypto trading.
History
The BBMA strategy was developed by Omar Ali (BBMA Oma Ally) in the early 2010s, gaining popularity in the forex trading community, particularly in Southeast Asia. Building on John Bollinger’s Bollinger Bands, Omar Ali integrated Weighted Moving Averages and a multi-timeframe approach to create a structured system for identifying reversals, breakouts, and extreme conditions. The BBMA Enhanced Pro refines this framework with modern features like real-time dashboards and customizable visualizations, making it accessible to both novice and experienced traders.
Key Features
- Multi-Timeframe Extreme Signals: Detects Extreme signals (overbought/oversold conditions) on both current and higher timeframes simultaneously, a rare feature that enhances signal reliability through trend alignment.
- Professional Visual Themes: Eight distinct themes (e.g., Neon Contrast, Fire Gradient) optimized for dark backgrounds.
- Dual-Mode Dashboard: Choose between Full Professional (detailed metrics) or Simplified Trader (essential info with custom notes).
- Bollinger Band Squeeze Detection: Identifies low volatility periods (narrow bands) signaling potential sideways markets or breakouts.
- Confirmation Labels: Displays labels when current timeframe signals align with recent higher timeframe signals, highlighting potential consolidations or squeezes.
- Timeframe Validation: Prevents selecting the same timeframe for current and higher timeframe analysis.
- Customizable Visualization: Toggle signal dots, EMA 50, and confirmation labels for a clean chart experience.
How It Works
- The BBMA Enhanced Pro combines Bollinger Bands (20-period SMA, ±2 standard deviations) with WMA (5 and 10 periods) to generate trade signals:
- Buy Signal: WMA 5 Low crosses above the lower Bollinger Band, indicating a recovery from an oversold condition (Extreme buy).
- Sell Signal: WMA 5 High crosses below the upper Bollinger Band, signaling a rejection from an overbought condition (Extreme sell).
- Extreme Signals: Occur when prices or WMAs move significantly beyond the Bollinger Bands (±2σ), indicating statistically rare overextensions. These often coincide with Bollinger Band Squeezes (narrow bands, low standard deviation), signaling potential sideways markets or impending breakouts.
- Multi-Timeframe Confirmation: The indicator’s unique strength is its ability to detect Extreme signals on both the current and higher timeframe (HTF) within the same chart. When the HTF generates an Extreme signal (e.g., buy), and the current timeframe follows with an identical signal, it suggests the lower timeframe is aligning with the HTF’s trend, increasing reliability. Labels appear only when this alignment occurs within a user-defined lookback period (default: 50 bars), highlighting periods of band contraction across timeframes.
- Bollinger Band Squeeze: Narrow bands (low standard deviation) indicate reduced volatility, often preceding consolidation or breakouts. The indicator’s dashboard tracks band width, helping traders anticipate these phases.
Why Multi-Timeframe Extremes Matter
The BBMA Enhanced Pro’s multi-timeframe approach is rare and powerful. When the higher timeframe shows an Extreme signal followed by a similar signal on the current timeframe, it suggests the market is following the HTF’s trend or entering a consolidation phase. For example:
- HTF Sideways First: If the HTF Bollinger Bands are shrinking (low volatility, low standard deviation), it signals a potential sideways market. Waiting for the current timeframe to show a similar Extreme signal confirms this consolidation, reducing the risk of false breakouts.
- Risk Management: By requiring HTF confirmation, the indicator encourages traders to lower risk during uncertain periods, waiting for both timeframes to align in a low-volatility state before acting.
Usage Instructions
- Select Display Mode:
Current TF Only: Shows Bollinger Bands and WMAs on the chart’s timeframe.
Higher TF Only: Displays HTF bands and WMAs.
Both Timeframes: Combines both for comprehensive analysis. - Choose Higher Timeframe: Select from 1min to 1D (e.g., 15min, 1hr). Ensure it differs from the current timeframe to avoid validation errors.
- Enable Signal Dots: Visualize buy/sell Extreme signals as dots, sourced from current, HTF, or both timeframes.
- Toggle Confirmation Labels: Display labels when current timeframe Extremes align with recent HTF Extremes, signaling potential squeezes or consolidations.
- Customize Dashboard:
Full Professional Mode: View metrics like BB width, WMA trend, and last signal.
Simplified Trader Mode: Focus on essential info with custom trader notes. - Select Visual Theme: Choose from eight themes (e.g., Ice Crystal, Royal Purple) for optimal chart clarity.
Trading Example
- Setup: 5min chart, HTF set to 1hr, signal dots and confirmation labels enabled.
- Buy Scenario: On the 5min chart, WMA 5 Low crosses above the lower Bollinger Band (Extreme buy), confirmed by a recent 1hr Extreme buy signal within 50 bars. The dashboard shows narrow bands (squeeze), and a green label appears.
Action: Enter a long position, targeting the middle band, with a stop-loss below the recent low. The HTF confirmation suggests a strong trend or consolidation phase. - Sell Scenario: WMA 5 High crosses below the upper Bollinger Band on the 5min chart, confirmed by a recent 1hr Extreme sell signal. The dashboard indicates a squeeze, and a red label appears.
Action: Enter a short position, targeting the middle band, with a stop-loss above the recent high. The aligned signals suggest a potential reversal or sideways market.
Customization Options
- BBMA Display Mode: Current TF Only, Higher TF Only, or Both Timeframes.
- Higher Timeframe: 1min to 1D.
- Visual Theme: Eight professional themes (e.g., Neon Contrast, Forest Glow).
- Line Style: Smooth or Step Line for HTF plots.
- Signal Dots: Enable/disable, select timeframe source (Current, Higher, or Both).
- Confirmation Labels: Toggle and set lookback window (1-100 bars).
- Dashboard: Enable/disable, choose mode (Full/Simplified), and set position (Top Right, Bottom Left, etc.).
Notes
- Extreme Signals and Squeezes: Extreme signals often occur during Bollinger Band contraction (low standard deviation), signaling potential sideways markets or breakouts. Use HTF confirmation to filter false signals.
- Risk Management: If the HTF shows a squeeze (narrow bands), wait for the current timeframe to confirm with an Extreme signal to reduce risk in choppy markets.
- Limitations: Avoid trading Extremes in highly volatile markets without additional confirmation (e.g., volume, RSI).
AuthorEnhanced Professional Edition, inspired by Omar Ali’s BBMA strategy
Version: 6.0 Pro - Simplified
Last Updated: September 2025
License: Mozilla Public License 2.0
We’d love to hear your feedback! Share your thoughts or questions in the comments below.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.