Trading glossary
Zig zag indicator
Trading involves risk. You could lose more than your deposit.
The zig zag indicator connects successive swing highs and lows with straight lines, ignoring every move smaller than a stated threshold, so only the larger turns remain on the chart.
A filter drawn over price rather than a signal generator. It marks the extremes of a move, joins each to the next with a straight line, and discards everything between them, so a chart that showed hundreds of bars shows a handful of legs. The setting that decides what survives is a minimum reversal, stated either as a percentage of the current extreme or as a number of points, and it is the whole of the indicator: raise it and only the largest turns are drawn, lower it and the line begins to follow the noise it was meant to remove. Most implementations add a second input governing how many bars must separate two extremes, so a swing high cannot be recorded immediately beside another one.
Construction is mechanical. While price extends a rising leg, the leg's endpoint moves with each new high. It is fixed only once price has fallen from that high by at least the stated reversal, at which point the high becomes a confirmed turn and a falling leg begins from it. The same logic runs in reverse for a falling leg. Nothing about the rule is predictive: every point on the line is a price that has already traded, and the line simply states which of those prices the setting considered large enough to keep.
The trip is that the last leg is provisional, a behaviour usually called repainting. The most recent extreme has not yet been confirmed by a reversal of the required size, so the line redraws as price moves, and a leg visible this hour can be gone by the next. This matters far beyond appearance: a strategy tested against the indicator's finished lines is tested against knowledge that was not available at the time, which flatters results in a way a backtesting report will not flag. Practitioners are broadly agreed on that limitation and disagree about what remains: the common uses are measurement and labelling, anchoring a retracement grid, counting waves, or describing how far and how long the market's recent legs have run, rather than treating any leg as evidence about the next one.
How it is calculated
A leg ends only when price reverses from its current extreme by at least the stated minimum, measured either as a percentage of that extreme or as a fixed number of points. Until the threshold is met the leg keeps extending to each new extreme, which is why the final leg on the chart is provisional.
One rising leg against an assumed reversal setting
- Assumed minimum reversal
- 5.00%
- Highest price of the current rising leg
- 100.00
- Price falls back to
- 96.00
- Reversal from the extreme
- 4.00%, short of the setting, so no turn is recorded
- Price falls further, to
- 94.50
- Reversal from the extreme
- 5.50%, so the high is fixed and a falling leg is drawn
Illustrative arithmetic. The reversal setting is an assumption chosen to keep the calculation legible and describes no instrument and no chart. Until the threshold is met the line to the latest extreme is provisional and redraws as price moves.
Where you see it
MetaTrader 5 ships a Zig Zag among the example indicators bundled with the terminal, configured by a depth, a deviation and a backstep input. It draws it directly on the price chart rather than in a separate pane.
Get started
Open your account in four steps.
A clear path from sign-up to your first trade, in four steps.
No depositNo documents
01/ 04step 1 of 4
Register
A few details to get started.
No deposit to open
02/ 04step 2 of 4
Verify
Confirm your identity, securely.
ID and proof of address
03/ 04step 3 of 4
Fund
Add money by bank transfer or card.
From $0
04/ 04step 4 of 4
Trade
Go live on the platform you already know.
MetaTrader 5



