All indicators

ZigZag Percent Reversal - Helper - AntiSlope

Nov 13, 2019

Static chart image
Support and ResistanceForecastingPivot Based (Retrospective)Volatility

The ZigZag Percent Reversal - Helper - AntiSlope indicator is a technical analysis tool designed to identify price reversals based on percentage changes and forecast potential future slopes using anti-derivative mapping techniques. It provides traders with a structural view of price swings while projecting theoretical reversal zones and trend trajectories based on historical leg statistics.

Usage

The script is primarily used to identify significant swing highs and lows and project where the next pivot might occur.

  • Trend Identification: The ZigZag lines highlight the primary direction of price movement, filtering out noise based on the chosen reversal threshold.
  • Forecasting: The indicator calculates average leg price ranges and time durations to project "target" zones where a reversal is statistically likely to happen.
  • Anti-Slope Lines: These helper lines act as dynamic support and resistance levels derived from the derivative slopes of previous price action. They can be used to gauge the strength of a current trend or identify potential exhaustion points.
  • Dynamic Reversals: Users can switch between manual percentage thresholds or volatility-adjusted thresholds (ATR-based) to adapt to different market conditions.

Details

The script functions by tracking price movements until they exceed a specific percentage (or ATR-based) threshold in the opposite direction of the current trend.

  • ZigZag Logic: It records the time and price of each pivot point to calculate the "Slope" of each trend leg.
  • Anti-Derivative Slopes: The "AntiSlope" component projects lines based on the relationship between price displacement and time duration. By calculating weighted averages of previous legs, the script estimates a "center of gravity" for future movement.
  • Statistical Weighting: It employs a weighting mechanism (Exponential Moving Average style) to give more relevance to recent price swings when calculating the projected average ranges and deviations.

Settings

  • Method to use for the zigzag reversal range: Select between a fixed "MANUAL" percentage or various ATR-based multipliers (e.g., ATR010 * X).
  • Percent of last pivot price for zigzag reversal: Sets the threshold for a new pivot when using the MANUAL method.
  • Multiplier to apply to ATR: Adjusts the sensitivity of the ATR-based reversal method.
  • Show real pivots: When enabled, the indicator plots pivots at their actual high/low time rather than the time the reversal was confirmed.
  • Length weight for Average leg stats: Determines the sensitivity of the statistical calculations for leg averages.
  • Extend anti lines: Options to extend the AntiSlope lines to the right, left, or both directions.
  • AntiLine (0-4) Settings: Toggle individual AntiSlope lines on/off and define their percentage values for calculation.

FAQ

How do I use the AntiSlope lines for trading?

The AntiSlope lines represent projected trajectories. If price respects these lines, the current trend is following historical statistical norms; breaks above or below these lines may indicate a change in trend velocity or an impending reversal.

What is the difference between Manual and ATR methods?

The Manual method uses a fixed percentage (e.g., 0.25%), whereas the ATR method adjusts the reversal threshold based on current market volatility, making it more adaptive to different timeframes.

How can I get access to ZigZag Percent Reversal - Helper - AntiSlope?

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.