All indicators

All in one Moving Averages

Aug 8, 2018

Static chart image
Volume BasedSignalsMoving Averages

The All in one Moving Averages tool provides a comprehensive suite of Simple, Exponential, and Hull Moving Averages within a single interface to help traders identify trend direction and momentum shifts across various timeframes.

Usage

The Usage section describes how the script can be used to analyze market trends and volume-weighted price action. Traders can utilize the multiple moving average layers to identify support/resistance levels and trend transitions.

Moving Average Analysis

The script plots several standard moving averages simultaneously:

  • Simple Moving Averages (SMA): Includes the 20, 50, and 200 periods, commonly used for identifying long-term institutional trend levels.
  • Exponential Moving Averages (EMA): Includes the 8, 13, 21, and 55 periods, which offer a faster response to recent price changes.
  • Hull Moving Averages (HMA): Includes the 55 and 80 periods, designed to reduce lag while maintaining smoothness for trend identification.

Volume-Based Bar Coloring

The indicator includes a dynamic bar coloring system based on volume relative to a 21-period volume average.

  • Bullish Candles: Colored in shades of green. Darker green indicates high volume (>150% of average), while lighter shades indicate lower relative volume.
  • Bearish Candles: Colored in shades of red. Darker red indicates high volume (>150% of average), while lighter shades indicate lower relative volume.

Signal Alerts

The script is pre-configured with alert conditions for significant moving average crossovers, such as the HMA 55 crossing the HMA 80, the EMA 8 crossing the EMA 21, and the SMA 20 crossing the SMA 50.

Details

The script utilizes a custom function to calculate the Hull Moving Average (HMA), which applies Weighted Moving Averages (WMA) to reduce the inherent lag found in traditional averages. The calculation uses the square root of the length to determine the final smoothing period.

The volume logic compares the current volume against a simple moving average of volume (SMA 21). This categorization allows traders to distinguish between high-conviction price moves and low-activity consolidations. The moving average lengths selected are industry standards (e.g., SMA 200 for long-term bias) combined with Fibonacci-based sequences (8, 13, 21, 55) for short-to-medium term momentum tracking. This script was refactored and visually updated by LuxAlgo based on original logic by ismail_tarim.

Settings

  • MA20/50/200: Toggles the visibility and style of the 20, 50, and 200-period Simple Moving Averages.
  • EMA8/13/21/55: Toggles the visibility and style of the 8, 13, 21, and 55-period Exponential Moving Averages.
  • HMA55/80: Toggles the visibility and style of the 55 and 80-period Hull Moving Averages.
  • Barcolor: Enables or disables the volume-based color overlay on the price candles.

FAQ

Which moving averages are included in this tool? The tool includes three Simple Moving Averages (20, 50, 200), four Exponential Moving Averages (8, 13, 21, 55), and two Hull Moving Averages (55, 80).

What do the different candle colors mean? The colors represent the direction of the candle (green for up, red for down) and the intensity of the volume. Darker colors signify higher volume relative to the 21-day average, while lighter colors signify lower volume.

How do I get access to the All in one Moving Averages? 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.