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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

