Exponential Moving Averages

Jun 19, 2019

Static chart image
Support and Resistance
Signals
Moving Averages

The Exponential Moving Averages indicator plots five distinct, industry-standard moving averages on a single chart to help traders identify trend direction and potential support or resistance levels across multiple timeframes simultaneously.

Usage

The Usage section focuses on how these five specific EMAs (9, 21, 50, 100, and 200) interact to provide a comprehensive view of market momentum. Traders typically use the shorter-term EMAs (9 and 21) to identify immediate trend changes and entry points, while the longer-term EMAs (50, 100, and 200) serve as institutional barometers for overall market sentiment.

Common applications include:

  • Trend Identification: When the shorter EMAs are positioned above the longer EMAs, it signifies a bullish trend. Conversely, shorter EMAs below longer EMAs signify a bearish trend.
  • Dynamic Support and Resistance: Prices often react or bounce off the 50, 100, or 200-period lines during retracements.
  • Crossover Alerts: The script specifically monitors the interaction between the 9 EMA and 21 EMA. A "Golden Cross" (9 crossing over 21) or a "Death Cross" (9 crossing under 21) can signal potential trend reversals or momentum shifts.

Details

The script utilizes the ta.ema function to calculate the Exponential Moving Average, which places a higher weight and significance on the most recent data points. Unlike Simple Moving Averages (SMA), the EMA reacts more quickly to price changes, making it a preferred tool for traders looking to capture trends early.

By consolidating five periods into one indicator, the script optimizes chart space and provides a tiered visual hierarchy. Each EMA is assigned a specific color and line thickness, with the 200 EMA being the thickest to represent its significant role in long-term trend analysis. The script also includes a price tracking feature that extends a horizontal line from the current EMA value to the price scale for easier reading.

Settings

  • Show Trackprice Line: When enabled, this toggle displays a horizontal dashed line extending from the current value of each EMA to the price axis, allowing for easier visualization of the exact current EMA levels relative to price.

FAQ

How do I use the EMA crossover alerts? The indicator is pre-configured to trigger an alert when the 9-period EMA crosses the 21-period EMA. You can set these alerts to notify you once per bar close to confirm the momentum shift.

Can I change the colors of the EMA lines? Yes, while the script provides default colors and thicknesses to differentiate between timeframes, you can modify these visual properties within the "Style" tab of the indicator settings.

How do I get access to Exponential Moving Averages? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
ninjatraderNinjaTrader
metatrader4MetaTrader 4/5
thinkorswimThinkorswim

Unlock Unlimited Access to the LuxAlgo Library

Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.

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.