All indicators

AAPP with Alerts

Sep 19, 2019

Static chart image
Support and ResistanceSignalsOscillatorsDivergencesMoving AveragesVolatility

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 indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.