Last updated: May 17, 2026
System Specs

The ZigZag Indicator: Filtering Market Noise

Trade-Charts IntelUpdate 2026.03

The Logic of Simplification

The ZigZag is often misunderstood by beginners as a predictive tool. In reality, it is a structural filter—a mathematical algorithm designed to clear the 'noise' from a chart by connecting significant price peaks and troughs. By ignoring minor fluctuations that fall below a specific percentage or point threshold, the ZigZag reveals the true 'skeleton' of market movement.

Think of the ZigZag as a high-pass filter for price action. It allows the large-scale institutional moves to pass through while blocking the random, erratic movements caused by retail order flow or minor news events.

Parameter Breakdown: Tuning the Structure

In its standard MT4/MT5 implementation, the ZigZag has three primary settings: 1) Depth, 2) Deviation, and 3) Backstep. Depth is the minimum number of bars that should not have a second high/low. Deviation is the minimum number of points (percentage) required for the indicator to draw a new trend line. Backstep is the minimum number of bars between the highs/lows.

Adjusting these values allows you to 'zoom in' or 'zoom out' of market structure. A high Depth (e.g., 50) will show long-term institutional waves, while a low Depth (e.g., 5) will highlight intraday scalping swings.

⚙️Parameter Logic

{ ZigZag Parameter Logic }

01

Depth: Number of bars for peak identification

02

Deviation: % price change for new line drawing

03

Backstep: Minimum bars between extremes

04

Higher Depth = Macro Institutional Structure

05

Lower Depth = Micro Scalping Fluctuations

06

Indicator DOES NOT provide entry signals

The 'Repainting' Scandal: Myth vs. Reality

Professional traders never trade 'the latest line' of a ZigZag. Why? Because the ZigZag repaints. This means the final leg of the indicator will extend as long as the price continues to make new territory. If price makes a new high, the ZigZag line will move up with it.

This characteristic makes the current leg useless for real-time entry signals. However, once a leg is locked in (the market starts moving in the opposite direction), that point becomes a fixed, historical structural extreme. This is where the power of the indicator lies.

info:

Never use ZigZag as a standalone signal provider. Use it to find anchor points for other tools.

Application 1: Elliott Wave Counting

For Elliott Wave practitioners, the ZigZag is indispensable. It removes the subjectivity from wave identification. By setting the ZigZag to capture the appropriate degree of wave, a trader can objectively identify the Impulse Waves (1, 3, 5) and Corrective Waves (2, 4). This objective structural mapping is vital for systematic wave analysis.

Application 2: Harmonic Pattern Anchoring

Harmonic patterns like the Gartley, Butterfly, and Bat require precise X, A, B, C, and D points. If these points are chosen subjectively, the resulting Fibonacci ratios will be incorrect. The ZigZag ensures that the pattern is anchored to the absolute highest or lowest point of a market swing, bringing mathematical precision to harmonic trading scripts.

Frequently Asked Questions

Can I use ZigZag for Trend following?

Yes, by using it to identify Higher Highs and Higher Lows. If the ZigZag consistently draws higher peaks and troughs, the market structure is bullish. If it breaks this sequence, the trend has shifted.

Does the ZigZag slow down my terminal?

No. The ZigZag is a very lightweight calculation. It only scans historical bars to find extremes, making it one of the most performance-efficient structural tools available.

What is the best Depth for Forex?

There is no single 'best' value. For H1 charts, many traders start with a Depth of 12. For Daily charts, a Depth of 24 or 50 is more common to capture major market cycles.

Recommended Reading