Moving Average Exponential Angle Detection

Jul 19, 2023

Static chart image
Signals
Candlestick
Moving Averages

The Moving Average Exponential Angle Detection indicator quantifies the slope of a moving average in degrees to help traders identify trend momentum and potential entry points based on specific angular thresholds.

Usage

The Usage section describes how the script can be used to identify trend strength and direction. Users can monitor the real-time slope of various moving average types to determine if a market is trending aggressively or consolidating.

  • Trend Identification: When the displayed angle is high (e.g., above 30°), it indicates strong bullish momentum. Conversely, a low negative angle (e.g., below -30°) indicates strong bearish momentum.
  • Signal Execution: By enabling signals in the settings, the indicator will plot shapes on the chart when the moving average reaches a user-defined angle. For example, if the "Define Angle" is set to 30, the script will look for instances where the slope is between 30° and 40° while the price action confirms the direction.
  • Visual Monitoring: The tool provides labels on the chart that display the exact degree of the slope at each bar, allowing for precise technical analysis of price velocity.

Details

The Moving Average Exponential Angle Detection tool calculates the rate of change between the current moving average value and its previous value. This difference is processed using a tangent function and converted from radians to degrees to provide a readable slope measurement.

The script includes logic to filter signals based on candle polarity. A long signal requires the angle to meet the threshold and the current candle to be bullish (close > open). A short signal requires a negative angle threshold and a bearish candle (close < open). This ensures that signals are only generated when price action aligns with the moving average's trajectory. The original logic was developed by @LossTronaut and has been refactored for optimized performance and visual clarity.

Settings

Angles

  • Display Angles on Chart: Toggles the visibility of the numerical degree labels attached to the moving average line.
  • Display Signals Based on Defined Angle: Enables or disables the plotting of bullish and bearish arrow signals.
  • Define Angle (Degree): Sets the target threshold for signal generation. Positive values are used for bullish detection, while negative values are used for bearish detection.

Moving Average

  • Moving Average Length: Determines the number of bars used to calculate the moving average.
  • Moving Average Type: Allows the user to select the underlying calculation method. Options include Exponential Moving Average (EMA), Simple Moving Average (SMA), Hull Moving Average (HMA), Weighted Moving Average (WMA), and Running Moving Average (RMA).

FAQ

What does a high degree angle indicate? A high positive or negative degree indicates a steep slope, signifying strong market momentum. Angles closer to 0° suggest a flattening trend or a range-bound market.

Can I use different types of moving averages? Yes, the indicator supports five different types: EMA, SMA, HMA, WMA, and RMA. Changing the type will affect the sensitivity and the resulting angle calculation.

How do I access the Moving Average Exponential Angle Detection? 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
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.