Multi-TimeFrame Bollinger Bands
Feb 8, 2019

The Multi-TimeFrame Bollinger Bands indicator displays Bollinger Bands from a higher timeframe directly onto your current chart, providing a broader perspective on volatility and price extremes to assist in identifying better entry and exit points.
Usage
The Multi-TimeFrame Bollinger Bands indicator is designed to help traders visualize market structure across multiple horizons simultaneously. By overlaying higher timeframe bands (such as Daily bands on a 1-hour chart), traders can identify key resistance and support levels that might not be visible on the lower timeframe.
Typical usage includes:
- Trend Following: Using the higher timeframe basis (middle line) as a primary trend filter.
- Mean Reversion: Identifying potential reversals when price reaches the upper or lower bands of the higher timeframe.
- Volatility Analysis: Comparing the width of local bands versus higher timeframe bands to gauge relative market expansion or contraction.
Details
The script calculates standard Bollinger Bands using a Simple Moving Average (SMA) and Standard Deviation on the local timeframe. It then utilizes the request.security function to fetch these same calculations from a user-defined higher timeframe. This allows for a seamless comparison between short-term price action and long-term volatility envelopes. The indicator also includes built-in alert logic for price crossovers on both the current and higher timeframe bands.
Settings
- Length: Determines the number of bars used for the SMA and Standard Deviation calculations (default is 20).
- Source: The price data point used for calculations (typically the close).
- StdDev: The multiplier for the Standard Deviation to determine the distance of the upper and lower bands from the basis.
- Higher Timeframe: The specific timeframe (e.g., Daily, Weekly) from which the secondary set of bands is calculated.
FAQ
How do I use the Multi-TimeFrame Bollinger Bands?
You can apply the indicator to your chart and select your desired "Higher Timeframe" in the settings to see how local price action interacts with broader volatility levels.
Can I set alerts for the higher timeframe bands?
Yes, the script includes automated alert conditions that trigger when price crosses above or below both the local and higher timeframe upper/lower bands.
Where can I access this tool?
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.