ATR ZigZag Breakout
Dec 8, 2025

The ATR ZigZag Breakout indicator is a volatility-driven trading tool designed to identify and scalp breakouts from pivots confirmed by Average True Range (ATR). It provides a systematic approach to trading key swing highs and lows by filtering market noise and focusing on levels where liquidity and aggressive orders typically cluster.
Usage
The indicator automates the process of identifying breakout levels based on ATR-filtered price swings. When the price establishes a new swing high or low that meets the ATR threshold, a "candidate trade" level is marked on the chart.
- Breakout Identification: Dotted lines represent pending breakout levels. A long candidate is set at the most recent swing high, while a short candidate is set at the most recent swing low.
- Automatic Bracket Placement: Once a level is breached, the script identifies the entry and automatically calculates a Stop Loss (SL) and Take Profit (TP) based on user-defined ATR multipliers.
- Dynamic Order Management: If the market reverses and forms a new swing in the opposite direction before the original breakout level is hit, the pending order is cancelled and the system rotates to the new direction.
- Session Filtering: Users can restrict trading to specific hours (e.g., London or New York sessions) to avoid low-liquidity periods or news events.
Details
The script utilizes an ATR-based threshold to confirm pivots, ensuring that swing highs and lows are only recognized when price has moved significantly against the prior trend. This method is generally more robust than fixed bar counts or simple fractals because it adapts to current market volatility.
The strategy follows a "one trade per leg" rule: once a breakout level has been traded within a specific swing, it will not be reused until a new pivot is formed. This prevents overtrading in choppy consolidation zones.
Settings
ZigZag Settings
- ZZ ATR Length: The lookback period for the ATR calculation used to determine swing pivots.
- ZZ ATR Mult: The multiplier applied to the ATR to define the minimum price movement required to confirm a new swing direction.
Risk Management
- Stop ATR (x): The multiplier used to set the Stop Loss distance from the entry price based on current ATR.
- RR Mult (x SL): The Risk-to-Reward ratio used to determine the Take Profit level relative to the Stop Loss distance.
Filters & Visualization
- Enable Trading Window: Toggles the session filter for active trading.
- Trading Window: Defines the specific time range (in exchange time) when trades are allowed to be initiated.
- Show Candidate Trades: Enables or disables the visualization of dotted lines for pending breakout levels.
FAQ
How do I access ATR ZigZag Breakout?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Which timeframes are best for this tool?
While it can be used on any timeframe, it is particularly effective for intraday trading (1m to 15m) on volatile instruments like Nasdaq (NQ), Gold (GC), and liquid cryptocurrency pairs.
Why was my pending order cancelled?
The order is cancelled if the market forms a new swing pivot in the opposite direction before the level is hit. This ensures the strategy is always trading the most current market structure.
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.

