Multi SMA EMA WMA HMA BB (5+5 MAs + Bollinger Bands) by RRB
Sep 3, 2018

The Multi SMA EMA WMA HMA BB indicator provides a comprehensive suite of ten customizable moving averages divided into two groups, complemented by a Bollinger Band overlay for versatile trend and volatility analysis.
Usage
The Usage section describes how the script can be used to identify trend direction, support/resistance levels, and volatility shifts. By providing ten independent moving averages and a Bollinger Band, users can visualize multiple time-horizon perspectives simultaneously.
- Dynamic Support and Resistance: The various moving averages can be used as dynamic levels to identify potential areas where price may react. Common lengths like 50, 100, and 200 are often used for long-term trend identification.
- Trend Reversals: Traders can monitor "Golden Crosses" or "Death Crosses" by observing when shorter-term moving averages cross over longer-term ones.
- Volatility Analysis: The integrated Bollinger Bands provide a standard deviation-based envelope around a simple moving average, helping to identify overextended price conditions or periods of low volatility (squeezes).
- Customization: Users can toggle visibility for each group (EMAs, SMAs, or BB) to declutter the chart based on their specific strategy needs.
Details
The script is constructed using two primary groups of five moving averages. While the groups are named "EMA" and "SMA" by default, each group can be assigned any of nine different calculation types, including SMA, EMA, WMA, SWMA, VWMA, HMA, ALMA, RMA, and LinReg.
- Calculation Logic: The script utilizes
ta.stdevfor the Bollinger Band calculations and custom functions for the Hull Moving Average (HMA). - Smoothing Options: Specific calculations like ALMA and Linear Regression (Linreg) include specialized parameters for offset and sigma to control the responsiveness and smoothness of the output.
- Visualization: To distinguish between the two groups, the first group (EMAs) is plotted as solid lines, while the second group (SMAs) is plotted as circles.
Settings
- Source: Determines the price data used for all calculations (e.g., Close, Open, High, Low).
- EMAs Group MA Type: Selects the calculation method for the first group of five averages.
- EMA1-5 Length: Sets the lookback period for each average in the first group; setting a length to 0 disables that specific plot.
- SMAs Group MA Type: Selects the calculation method for the second group of five averages.
- SMA1-5 Length: Sets the lookback period for each average in the second group; setting a length to 0 disables that specific plot.
- BB Length: Sets the period for the Bollinger Band's middle line and standard deviation calculation.
- BB Standard Deviation: Adjusts the multiplier for the width of the Bollinger Band envelopes.
- Show All EMAs/SMAs/BB: Toggles the visibility of the respective groups on the chart.
- ALMA Offset/Sigma: Specific controls for the ALMA calculation type to adjust its distribution and smoothness.
- Linreg Offset: Controls the displacement for the Linear Regression calculation type.
FAQ
Which moving average types are supported? The indicator supports SMA, EMA, WMA, SWMA, VWMA, HMA, ALMA, RMA, and Linear Regression.
Can I use this for Multi-Timeframe (MTF) analysis? This version is the "Simple" version, designed for the current chart timeframe. It allows for two groups of 5 MAs (10 total) plus Bollinger Bands.
How do I access Multi SMA EMA WMA HMA BB? 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.