All indicators

3 Moving Averages by RayGizmo

Apr 12, 2018

Static chart image
Support and ResistanceSignalsMoving Averages

The 3 Moving Averages by RayGizmo indicator provides a streamlined interface for plotting three independent Simple Moving Averages (SMA) on a single chart to identify trend direction and potential crossover signals. This tool simplifies chart management by consolidating multiple trend-following components into one script, allowing traders to visualize short-, medium-, and long-term market sentiment simultaneously.

Usage

The Usage section describes how the script can be used. Traders primarily use this tool to identify the prevailing market trend and potential reversal points through moving average crossovers.

  • Trend Identification: When price action remains above all three moving averages, the market is generally considered to be in a bullish trend. Conversely, price action below the averages suggests a bearish trend.
  • Crossover Signals: The script identifies interactions between the averages. For example, a shorter-term MA (e.g., 50-period) crossing above a longer-term MA (e.g., 200-period) is often interpreted as a bullish "Golden Cross," while a cross below is seen as a bearish "Death Cross."
  • Support and Resistance: These levels often act as dynamic support or resistance areas where price may react during retracements.

Details

The script calculates three Simple Moving Averages (SMA) based on a user-defined price source and specific lookback periods. By default, these are set to 50, 100, and 200 periods to reflect standard institutional benchmarks. The implementation includes optimized alert conditions that trigger when the fast MA crosses the medium MA, or when the medium MA crosses the slow MA, facilitating timely decision-making without constant manual monitoring.

Settings

  • Base price: Determines the source data used for the calculations (e.g., Close, Open, High, Low).
  • Moving Average 1 Length: Sets the lookback period for the first (typically fastest) moving average.
  • Moving Average 2 Length: Sets the lookback period for the second (typically medium-term) moving average.
  • Moving Average 3 Length: Sets the lookback period for the third (typically slowest) moving average.

FAQ

How do I interpret the default colors of the lines? In the default configuration, the green line represents the fast MA, the blue line represents the medium MA, and the red line represents the slow MA.

Can I use these moving averages for automated alerts? Yes, the script is optimized for alerts and will notify you when Moving Average 1 crosses Moving Average 2, or when Moving Average 2 crosses Moving Average 3.

How do I access this 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.