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.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.