DECL: 3 X Moving Average (50, 100 and 200 day)
Nov 19, 2017

The DECL: 3 X Moving Average (50, 100 and 200 day) indicator provides a streamlined visualization of market trends by plotting three distinct simple moving averages to help traders identify institutional support levels, trend direction, and potential reversal points.
Usage
The Usage section focuses on how the indicator assists in trend identification and market analysis. By default, the tool plots three lines corresponding to the 50, 100, and 200-period simple moving averages (SMA).
- Trend Identification: When the price remains above all three moving averages, the market is considered to be in a strong bullish trend. Conversely, when the price stays below the averages, the market is considered bearish.
- Support and Resistance: These specific intervals—50, 100, and 200—are widely monitored by institutional traders. Consequently, price often reacts to these levels, treating them as dynamic support in uptrends or dynamic resistance in downtrends.
- Crossover Analysis: Traders can monitor the interaction between the moving averages. For example, a shorter-term average crossing above a longer-term average (such as the 50-period crossing the 200-period) is often interpreted as a shift in momentum.
- Alerts: The script includes built-in alert conditions for crossovers between the three moving average lines, allowing users to be notified of momentum shifts in real-time.
Details
The script is a refactored version of original work by @JustC10, optimized for modern charting environments and alert performance. It utilizes the simple moving average (SMA) calculation, which calculates the arithmetic mean of a selected price source over a specific number of periods.
The default lengths (50, 100, and 200) are industry standards for daily chart analysis. The 50-day SMA is typically used for intermediate trend tracking, while the 200-day SMA is regarded as the primary indicator for long-term market health. By plotting all three simultaneously, the indicator provides a comprehensive view of multiple time-horizon sentiments on a single chart.
Settings
- Length 1: Determines the lookback period for the first moving average (default: 50).
- Length 2: Determines the lookback period for the second moving average (default: 100).
- Length 3: Determines the lookback period for the third moving average (default: 200).
- Source: Specifies the price data used to calculate the averages (default: Close).
FAQ
Which timeframes are best for this indicator? While the default settings are optimized for daily charts (50, 100, and 200 days), the indicator can be applied to any timeframe. Users may choose to lower the length settings for faster-paced intraday trading.
Can I change the calculation type to Exponential Moving Averages (EMA)?
This specific version uses Simple Moving Averages (SMA). To use EMAs, the underlying calculation logic in the script would need to be adjusted to the ta.ema function.
How do I access the DECL: 3 X Moving Average? 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.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.