ZigZag Percent Reversal
Sep 2, 2018

The ZigZag Percent Reversal indicator tracks price swings and identifies pivot points based on a specific percentage movement relative to the last significant high or low. It provides a clean, stepline visualization of price trends to help traders filter out minor price noise and focus on meaningful reversals.
Usage
The Usage section focuses on identifying trend shifts and key support/resistance levels. When the price reverses by more than the user-defined percentage, the indicator plots a new pivot point and shifts its direction.
- Trend Identification: A rising stepline indicates an uptrend, while a falling stepline indicates a downtrend.
- Reversal Points: The "ZZ Pivot" points highlight the exact price level where a reversal was confirmed.
- Break Points: The indicator displays a "Break Point" circle, representing the price level the market must cross to trigger a reversal in the opposite direction.
Traders can use these pivots to set stop-loss levels or to identify potential areas for trend-following entries.
Details
The script operates by maintaining a "track" of the highest high (during an uptrend) or the lowest low (during a downtrend). A reversal is triggered when the closing price moves away from that extreme by a distance greater than the lastPivot * percent.
Unlike standard ZigZags that may rely on fixed point distances, this version uses a percentage-based approach, making it adaptive across different asset classes and price scales. It is implemented using a stepline style for the main output to clearly delineate the "current" active pivot level until a new one is formed.
Settings
- Percent of last pivot price for zigzag reversal: Determines the percentage threshold required to trigger a trend reversal. Smaller values make the indicator more sensitive to price fluctuations, while larger values filter out more noise.
FAQ
How do I interpret the Break Point?
The Break Point is a visual guide showing the price level that needs to be reached for the ZigZag to change direction. It is calculated based on the current extreme and the percentage input.
Can I use this for automated alerts?
Yes, the script includes built-in alert conditions that trigger whenever the ZigZag switches direction (Reversal Up or Reversal Down).
How do I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

