Multi SMA EMA WMA HMA BB (5x8 MAs Bollinger Bands) MAX MTF
Mar 20, 2019

The Multi SMA EMA WMA HMA BB (5x8 MAs Bollinger Bands) MAX MTF indicator provides a comprehensive suite of moving averages and Bollinger Bands with extensive Multi-Timeframe (MTF) support. It allows users to visualize up to 40 moving averages and dynamic levels from different timeframes and symbols simultaneously on a single chart.
Usage
The indicator is designed for traders who require high-density technical analysis across multiple time horizons. You can configure up to four distinct groups of moving averages, each with its own symbol, timeframe, and MA type (SMA, EMA, WMA, HMA, etc.).
- Mixed MA Types: Each group supports two subtypes (Type A and Type B), allowing you to overlay different calculation methods (e.g., EMA and SMA) within the same timeframe group.
- Dynamic Levels: Beyond standard lines, the indicator can display MAs as horizontal labels/levels with adjustable offsets and indents, useful for identifying support and resistance zones at a glance.
- Step Line Smoothing: To handle MTF "stair-stepping," the indicator includes X and Y smoothing parameters to create cleaner visual outputs on lower timeframe charts.
- Timeframe Filtering: Use the "Show MA Groups" filters to only display data that is higher, lower, or equal to your current chart resolution, reducing clutter.
Details
This "MAX MTF" version is engineered to maximize the technical limits of Pine Script. It utilizes efficient security calls and plot outputs to provide the highest possible number of data points (up to 40 MAs across 5 different timeframe/symbol slots).
- Smoothing: The X and Y point density settings help align data points from higher timeframes to the current chart's price scale and time intervals.
- Security Limits: The script manages up to 32 active security calls for MTF data while reserving plots for Bollinger Bands and level labels.
- Duplicate Handling: An optional toggle allows you to hide groups that share the same timeframe or symbol to maintain a clean workspace.
Settings
General Settings
- Show Group (1-4) MAs: Toggles the visibility of the specific moving average group.
- Show BB Group: Toggles the Bollinger Bands visibility.
- Timeframe Mode: Filter groups based on whether their timeframe is higher than, lower than, or equal to the current chart (e.g., >= Current).
- Source: Select the price source for calculations (default is Close).
MA Group Configuration
- Symbol/Timeframe: Set a custom ticker (e.g., NASDAQ:AAPL) and timeframe (e.g., 4H, D, W) for the group.
- MA Type A/B: Choose from SMA, EMA, WMA, SWMA, VWMA, HMA, ALMA, RMA, or Linreg.
- MA Lengths: Individual inputs for the length of each moving average within the group.
Bollinger Bands (BB)
- BB Type/Length/StdDev: Configure the calculation method, period, and standard deviation for the Bollinger Bands.
Smoothing & Levels
- MA X/Y Smoothing: Adjusts the density and "stepping" of MTF lines.
- Level Offset/Indent: Controls the horizontal positioning of the labels for the dynamic levels.
- Level Y Shift: Globally shifts labels vertically to align with high-timeframe price action.
FAQ
How do I access Multi SMA EMA WMA HMA BB (5x8 MAs Bollinger Bands) MAX MTF?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Why are some MAs missing from my chart?
This usually occurs if there isn't enough historical data for the selected timeframe (e.g., a 200 EMA on a Weekly chart requires 200 weeks of history) or if the Y-smoothing value is set too high for the current asset's price scale.
Does this work in TradingView Replay Mode?
Yes, however, please note that TradingView's Replay Mode limits MTF data for free accounts to daily timeframes or higher. Intraday MTF data in Replay Mode may appear as flat lines due to platform-side security call limitations.
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.