CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

ZigZag Indicator: How It Works and Where It Misleads

This guide explains what the ZigZag indicator draws, how its settings change the picture, how to read it, and why it should not be used on its own for live decisions.

Extrade Pakistan editorial team ·

On this page
  1. What the ZigZag indicator is
  2. A drawn example
  3. How it is calculated
  4. ZigZag indicator settings
  5. How to add it in MT4 and MT5
  6. How to read it and typical uses
  7. Where ZigZag misleads
  8. Frequent questions

What the ZigZag indicator is

The ZigZag indicator draws straight lines between significant swing highs and swing lows on a chart. It ignores price moves smaller than a threshold you set. The result is a cleaner view of how the market has moved, without the noise of every candle.

ZigZag does not predict anything. It describes swings that have already happened. On the latest swing, it keeps changing its mind (see below).

ZigZag 2%
ZigZag joins the swing highs and lows that differ by at least 3%. Its last line can change until the next swing is confirmed. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

A drawn example

How it is calculated

The logic of the standard MetaTrader version:

  1. Look back over a set number of bars and find the highest high and lowest low.
  2. Accept a new swing point only if price has moved by more than a minimum deviation from the last point.
  3. Skip a new point if it comes too soon after the previous one in the opposite direction.
  4. Connect the accepted points with straight lines.

ZigZag indicator settings

The standard MetaTrader ZigZag has these inputs:

Setting What it controls Raise it Lower it
Depth Bars scanned for a swing high or low Fewer, larger swings More, smaller swings
Deviation Minimum move, in points, before a new swing counts Filters small moves Shows minor swings
Backstep Minimum bars between consecutive swing points Fewer quick reversals More frequent points

The default values are shown in the indicator's input window. Many traders keep the defaults on the higher timeframes and raise Depth or Deviation on lower ones, where noise is greater. Deviation is measured in points, so a value that suits a currency pair may be far too small or too large for gold or an index. Check the setting whenever you switch instruments.

How to add it in MT4 and MT5

In most builds of MetaTrader 4, ZigZag is under Insert, then Indicators, then Custom. In MetaTrader 5 it usually sits under Insert, then Indicators, then Examples. You can also drag it from the Navigator window onto the chart. The exact menu can differ by build. See our MetaTrader 4 and MetaTrader 5 pages for platform basics.

How to read it and typical uses

A "zigzag strategy" usually means one of these uses combined with other tools. The line alone is not a trading signal.

Where ZigZag misleads

The Fractals indicator is a related tool. It also marks swings but confirms them after a fixed number of bars.

Leveraged forex and CFD trading can lose money fast. Practise reading ZigZag on a demo chart before relying on it, and read our risk management guide.

Frequent questions

Does the ZigZag indicator repaint?

Yes. The most recent leg changes until the next swing is confirmed. Confirmed earlier swings normally stay fixed.

What are the best ZigZag indicator settings?

No setting suits every market. Larger values show major swings, smaller values show minor ones. Adjust Deviation for each instrument's price scale.

Is ZigZag useful for forex?

It is widely used on forex charts to map swings and structure. It describes the past and does not forecast price.

Can I build an automated strategy on ZigZag?

Only if the code uses confirmed swing points. Reading the unconfirmed last point gives results that cannot be repeated in live trading.

Related pages