Three Moving Averages
Jul 12, 2018

The Three Moving Averages indicator provides a consolidated technical analysis tool that plots three customizable moving average lines simultaneously to help traders identify trend direction, potential reversals, and support/resistance levels.
Usage
The Usage section focuses on how these three lines interact to form a cohesive trading strategy. Traders typically use this tool to identify trend strength and momentum shifts.
- Trend Identification: When the shorter-term moving average (e.g., MA 1) is above the medium (MA 2) and long-term (MA 3) averages, it indicates a bullish trend. Conversely, if the short-term average is below the others, a bearish trend is suggested.
- Crossovers: The indicator includes built-in alert logic for crossovers. A "Golden Cross" (shorter MA crossing above a longer MA) can signal a potential long entry, while a "Death Cross" (shorter MA crossing below a longer MA) can signal a potential short entry.
- Dynamic Support and Resistance: Moving averages often act as floors or ceilings for price action. By utilizing three different lengths, traders can identify multiple layers of historical price support or resistance.
To disable any specific moving average, users can uncheck the visibility box for that specific plot within the "Style" tab of the indicator settings.
Details
The script allows for high flexibility by offering multiple calculation methods for each of the three lines. These include:
- SMA (Simple Moving Average): Calculates the average price over a specific period.
- EMA (Exponential Moving Average): Places more weight on recent price data to reduce lag.
- WMA (Weighted Moving Average): Assigns a linear weighting to price points.
- VWMA (Volume-Weighted Moving Average): Weights price based on the volume traded at each level.
- RMA (Relative Moving Average): The moving average used within the RSI calculation.
- TEMA (Triple Exponential Moving Average): A triple-smoothed average designed to track price movements with significantly less lag than traditional EMAs.
The script also implements an offset feature, allowing the moving average plots to be shifted forward on the horizontal axis.
Settings
The settings are categorized by each individual moving average (1, 2, and 3):
- Moving Average Type: Selects the calculation method (EMA, SMA, RMA, VWMA, WMA, TEMA).
- Moving Average Length: Determines the lookback period used for the calculation.
- Moving Average Source: Specifies the price data point used for calculation (e.g., Close, Open, High, Low, HL2, etc.).
- Moving Average Offset: Shifts the moving average line forward on the chart by a specified number of bars.
FAQ
How do I change the colors of the moving averages? You can modify the color, thickness, and visibility of each moving average line by navigating to the "Style" tab in the indicator settings menu.
Can I set alerts for specific crossovers? Yes, the script is optimized for alerts and will trigger notifications when any of the three moving averages cross over or under each other.
How do I get access to the Three Moving Averages indicator? 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.

