All indicators

Moving Averages (10, 55, 100 EMAs, 200 SMA close)

Apr 11, 2018

Static chart image
Support and ResistanceSignalsMoving Averages

The Moving Averages (10, 55, 100 EMAs, 200 SMA close) indicator provides a multi-layered trend analysis framework by combining four Exponential Moving Averages with a long-term Simple Moving Average to identify momentum shifts and key institutional support or resistance levels.

Usage

The Usage section focuses on interpreting the relationship between the various moving average lengths to determine market direction and potential entry or exit points.

  • Trend Identification: Traders can monitor the sequence of the EMAs (10, 21, 55, and 100). In a strong bullish trend, these averages will typically fan out with the shorter-term averages positioned above the longer-term ones. Conversely, in a bearish trend, the shorter-term averages will be positioned below the longer-term ones.
  • Dynamic Support and Resistance: The 200-period Simple Moving Average (SMA) is widely regarded as a major institutional trend filter. Price action consistently holding above this line suggests a long-term bullish bias, while price action below it suggests a bearish bias.
  • Crossover Signals: The script includes built-in logic for short-term momentum shifts, specifically looking at the interaction between the 10-period and 21-period EMAs. A crossover of the 10 EMA above the 21 EMA may indicate a short-term bullish reversal.
  • Mean Reversion: Large gaps between the price and the 200 SMA often indicate overextended market conditions, suggesting a potential move back toward the average.

Details

This tool is a refactored and visually optimized version of the original concept by @jhaurawachsman. It calculates four Exponential Moving Averages (EMA) which prioritize recent price data, making them more responsive to current market volatility. The fifth component is a Simple Moving Average (SMA) which provides a smoothed, long-term perspective.

The visual design utilizes increasing line strokes and variable transparency to help traders distinguish between short-term noise and long-term trends. Additionally, the script is optimized with alert conditions for EMA crossovers and price interactions with the 200 SMA, allowing for automated monitoring of critical technical levels.

Settings

  • EMA #1 – #4: Sets the period length for the four Exponential Moving Averages (defaulting to 10, 21, 55, and 100).
  • EMA Source #1 – #4: Determines the price data used for the EMA calculations (e.g., Close, Open, High, Low).
  • SMA #5: Sets the period length for the Simple Moving Average (defaulting to 200).
  • SMA Source #5: Determines the price data used for the SMA calculation.

FAQ

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

What is the difference between the EMA and SMA in this script? The EMAs (10, 21, 55, 100) react faster to price changes by giving more weight to recent data, whereas the SMA (200) provides a balanced average of the entire period, making it ideal for identifying long-term institutional trends.

Can I customize the lengths of the moving averages? Yes, all five moving average lengths and their calculation sources can be adjusted within the script settings to fit different trading styles or timeframes.

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.