All indicators

Moving Averages 50 & 200

Jun 28, 2018

Static chart image
SignalsMoving Averages

The Moving Averages 50 & 200 indicator provides a streamlined way to monitor the interaction between medium-term and long-term trends by tracking the 50-period and 200-period simple moving averages for trend identification and crossover signals.

Usage

The Usage section focuses on identifying trend shifts and potential entry or exit points based on the relationship between two specific moving average periods. Traders typically use this tool to identify "Golden Crosses" and "Death Crosses."

  • Golden Cross: Occurs when the faster moving average (50-period) crosses above the slower moving average (200-period). This is traditionally interpreted as a bullish signal suggesting a long-term upward trend reversal or continuation.
  • Death Cross: Occurs when the 50-period moving average crosses below the 200-period moving average. This is interpreted as a bearish signal indicating a potential long-term downward trend.
  • Trend Confirmation: When the price remains above both moving averages, the market is generally considered to be in a strong uptrend. Conversely, price action below both averages suggests a sustained downtrend.

Details

The script utilizes the Simple Moving Average (SMA) calculation to smooth price data over the specified periods. By comparing a shorter 50-period SMA with a longer 200-period SMA, the indicator filters out short-term market noise to highlight significant shifts in momentum. The script is optimized with built-in alert conditions that trigger upon every crossover event at the close of the bar, allowing for timely responses to major trend changes. This implementation was originally authored by @mobitz and subsequently refined for visual clarity and performance.

Settings

  • MA 50 Length: Determines the lookback period for the faster moving average (default is 50).
  • MA 50 Source: Selects the price data point (Close, Open, High, Low, etc.) used to calculate the 50-period average.
  • MA 200 Length: Determines the lookback period for the slower moving average (default is 200).
  • MA 200 Source: Selects the price data point used to calculate the 200-period average.

FAQ

How do I interpret a Golden Cross? A Golden Cross is identified when the blue 50-period MA crosses above the 200-period MA, signaling that short-term price momentum is outpacing long-term momentum, often leading to bullish price action.

Can I change the moving average periods? Yes, while the indicator defaults to the standard 50 and 200 periods, you can adjust the "Length" settings to suit different timeframes or trading strategies.

How can I access the Moving Averages 50 & 200 indicator? 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.