AAPP with Alerts

Sep 19, 2019

Static chart image
Support and Resistance
Signals
Oscillators
Divergences
Moving Averages
Volatility

The AAPP with Alerts indicator is a trend-following tool designed to identify market momentum shifts using adaptive moving average techniques and relative strength divergence. It provides traders with clear visual signals and integrated alerts to capture potential trend reversals and continuations.

Usage

The indicator can be used to identify trend direction and potential entry or exit points based on color changes in the adaptive baseline. When the plot turns green, it suggests a bullish trend, while a red plot indicates a bearish trend.

  • Trend Following: Traders can look for "B" (Buy) labels when the adaptive moving average transitions from red to green, signaling a shift to upward momentum. Conversely, "S" (Sell) labels appear when the trend transitions from green to red.
  • Support/Resistance: The indicator plots a neutral blue line based on the most recent trend change price level, which can serve as a dynamic reference for stop-loss placement or breakout confirmation.
  • Smoothing Toggle: By enabling the smoothing option, the indicator shifts from tracking price-based adaptive averages to a divergence-based oscillator, allowing for a different perspective on momentum strength.

Details

The AAPP with Alerts is built upon an Adaptive Moving Average (AMA) framework that incorporates a volatility-adjusted gamma parameter. This allows the indicator to remain reactive during high-volatility periods while filtering out noise during consolidation.

The underlying logic also utilizes a Percent Price Oscillator (PPO) divergence calculation. By comparing fast and slow Relative Strength Index (RSI) components of the source dataset, the script calculates a divergence value that informs the trend direction. The adaptive component (AAMA) further refines this by applying a weighted moving average to the volatility-adjusted price data.

Settings

  • Dataset: Determines the source price data used for all calculations (default is Close).
  • Gamma: A volatility adjustment factor that controls the sensitivity of the adaptive calculation.
  • Fast Length: Sets the period for the fast RSI component used in divergence calculations.
  • Slow Length: Sets the period for the slow RSI component and the final smoothing WMA.
  • Apply smoothing?: Toggles between the primary Adaptive Moving Average view and a smoothed divergence oscillator.
  • Show Labels?: Enables or disables the visual "B" and "S" labels on the chart.

FAQ

How do I interpret the color changes on the chart? A green line indicates rising momentum (bullish), while a red line indicates falling momentum (bearish). The labels appear specifically at the moment these states transition.

What timeframe is this script optimized for? The default settings provide suggestions for 1-hour (Fast 1, Slow 3) and 5-minute (Fast 2, Slow 8) timeframes, but the parameters can be adjusted for any period.

How can I access this tool? 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.