Triple Moving Averages & BB

Jan 10, 2018

Static chart image
Support and Resistance
Signals
Moving Averages
Volatility

The Triple Moving Averages & BB indicator provides a comprehensive trend-following and volatility analysis framework by combining three distinct Simple Moving Averages (SMAs) with a Bollinger Band overlay.

Usage

The Usage of this tool focuses on identifying multi-layered trend direction and volatility extremes. Traders can use the indicator in the following ways:

  • Trend Identification: By utilizing three separate SMAs (Fast, Standard, and Slow), users can determine the short, medium, and long-term bias. A bullish alignment occurs when the Fast MA is above the Standard MA, and the Standard MA is above the Slow MA.
  • Volatility and Mean Reversion: The Bollinger Bands (BB) illustrate price volatility. Price touching the upper or lower bands can signal overextended conditions, while the BB Basis (the middle line) acts as a dynamic mean reversion level.
  • Crossover Signals: The script monitors the interaction between the Fast and Slow Moving Averages. A "Golden Cross" (Fast crossing above Slow) suggests a potential bullish trend shift, while a "Death Cross" (Fast crossing below Slow) suggests a bearish shift.
  • Support and Resistance: The various Moving Averages and the Bollinger Band Basis often function as dynamic support or resistance zones during trending markets.

Details

The Triple Moving Averages & BB tool is constructed using standard technical analysis calculations to ensure reliability across different timeframes.

  • Moving Averages: The indicator calculates three Simple Moving Averages based on user-defined lengths (defaulting to 50, 100, and 200). These are widely recognized levels used by institutional and retail traders for trend filtering.
  • Bollinger Bands: The bands are calculated using a baseline (SMA) and a standard deviation multiplier. This expands and contracts based on market volatility, providing a visual representation of price dispersion.
  • Alert Logic: The script includes optimized alert conditions that trigger when the Fast Moving Average crosses the Slow Moving Average, allowing for automated monitoring of trend changes.

Settings

  • BB Length: Determines the period used to calculate the Bollinger Band basis and standard deviation (Default: 20).
  • StdDev: Sets the multiplier for the Bollinger Bands, controlling the width of the volatility envelope.
  • MA Fast Length: The period for the shortest Moving Average, typically used for immediate trend direction (Default: 50).
  • MA Standard Length: The period for the medium-term Moving Average (Default: 100).
  • MA Slow Length: The period for the longest Moving Average, used to define the primary trend (Default: 200).
  • Source: The price data used for all calculations, such as Close, Open, High, or Low.

FAQ

What are the default Moving Average lengths used in this script? The default lengths are 50 (Fast), 100 (Standard), and 200 (Slow), which are standard periods for identifying medium-to-long-term market trends.

Does this indicator provide alerts? Yes, the indicator includes built-in alerts for when the Fast Moving Average crosses above or below the Slow Moving Average.

How can I access the Triple Moving Averages & BB indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
ninjatraderNinjaTrader
metatrader4MetaTrader 4/5
thinkorswimThinkorswim

Unlock Unlimited Access to the LuxAlgo Library

Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.

Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.

Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.

Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.

Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2026 LuxAlgo Global, LLC.