ZigZag Indicator in Forex: How It Draws Swings and Why It Repaints
Short answer: The ZigZag indicator joins significant swing highs and swing lows with straight lines and ignores moves smaller than a threshold you set. It is mostly used to mark past swings for Fibonacci and support and resistance work. It repaints: the last leg moves with price until a reversal bigger than the threshold confirms it, so it is a poor entry signal.

ZigZag lines joining confirmed swings. Illustration, November 2026.
What ZigZag does
Price charts are noisy. Candles move up and down by small amounts all day, and it is hard to see the larger swings. ZigZag removes the small moves. It starts at one extreme, follows price in one direction, and only turns when price reverses by at least the threshold. Then it follows price in the new direction.
The result is a few straight lines between turning points. Each turning point is a swing high or swing low. Because it simplifies the chart so well, the indicator is popular for counting swings, measuring them in pips and drawing tools on them.
Settings
Platforms use two styles of threshold.
| Style | Inputs | Meaning |
|---|---|---|
| MetaTrader built-in | Depth, deviation, backstep | Depth: minimum candles between swing points. Deviation: minimum price move to start a new swing. Backstep: minimum candles between consecutive highs or lows |
| Percentage style | One percentage or pip value | A new leg starts only after price reverses by at least that amount |
MetaTrader’s built-in version commonly starts with depth 12, deviation 5 and backstep 3. A larger deviation gives fewer, longer legs. A smaller one gives many short legs and looks closer to the raw chart. Inputs and results vary by platform and by version, so compare the drawing with the candles before you rely on it.
A worked example on EUR/USD
These are made-up prices to show the arithmetic. It is not a real chart.
Price makes a high at 1.1000, falls to 1.0900, bounces to 1.0940, then falls to 1.0850.
| Threshold | What ZigZag draws | Legs |
|---|---|---|
| 30 pips | 1.1000 → 1.0900 → 1.0940 → 1.0850 | −100, +40, −90 pips |
| 50 pips | 1.1000 → 1.0850 | −150 pips, because the 40-pip bounce is smaller than 50 pips |
With a 30-pip threshold the 40-pip bounce counts as a swing. With 50 pips it is ignored and the whole fall shows as one leg. The same prices give two different pictures, so the threshold decides what you see and what a “swing” means in your plan. Pick it from the size of swing you want to trade, and write it down.
Why it repaints
ZigZag cannot know that a high is a high until price falls far enough from it. Until then the line follows the live price. In the example above, suppose price is at 1.0870 after the fall to 1.0850 and the threshold is 30 pips. The last point could still become 1.0840 or 1.0820 if price keeps falling, and the line will move with it. If price instead rises 30 pips from the low, the low is confirmed and the line turns.
- Confirmed legs do not change.
- The last leg can move or vanish.
This is why a back test that uses the final ZigZag chart looks perfect. In real time, the turning points are only known after the fact. Do not treat a point on the live leg as a signal.
Good uses
- Marking swings for Fibonacci retracement from the last two confirmed points.
- Trend lines drawn through successive ZigZag lows or highs. See trading with trend lines.
- Support and resistance. Repeated turning points at similar prices often mark support and resistance zones.
- Measuring swings. Counting the pip size of recent legs shows what a typical move looks like on a pair and time frame, which helps you place stops.
- Reviewing past trades. The simplified outline makes it easier to see where an entry sat in a swing.
Limits
- No signal of its own. It describes the past, it does not forecast.
- Repainting. The last leg is unconfirmed.
- Setting dependence. Change the threshold and the swings change.
- Ranges. In a sideways market the legs are short and random. See the range market guide.
- Version differences. Platforms calculate it slightly differently, so two charts can disagree.
How to use it in a plan
- Choose the threshold from the swing size you trade and record it.
- Use only confirmed legs, meaning those followed by a reversal larger than the threshold.
- Draw your tools on those points, then set the stop and size the trade from the distance. See position sizing.
- Keep entries and exits tied to your own rule, and use ZigZag only as the map.
- Log what happened in your trading journal.
Bottom line
ZigZag is a drawing aid that removes small moves and shows swing highs and lows. Its last leg repaints, so it should not trigger an entry. Use confirmed points to place Fibonacci levels and trend lines, set the threshold on purpose, and test in a demo account. Only risk money you can afford to lose. CFDs are complex, high-risk instruments.
Frequently asked questions
What is the ZigZag indicator?
It draws straight lines between swing highs and swing lows and ignores any price move smaller than a set threshold. The result is a simplified outline of the chart that makes swings easier to see and measure.
Does the ZigZag indicator repaint?
Yes, the most recent leg does. It follows price until a reversal larger than the threshold appears, so the last point can move or disappear. Older confirmed legs are not redrawn.
What are the default ZigZag settings?
MetaTrader's built-in version commonly starts with depth 12, deviation 5 and backstep 3. Other platforms use a percentage threshold instead. Check the inputs on your own platform because they differ.
Can I use ZigZag for entry signals?
It is a poor entry signal because the last point is only known after price has moved away from it. Traders use it mainly to mark past swings for drawing Fibonacci levels, trend lines and support and resistance.
How do I use ZigZag with Fibonacci retracement?
Take the two latest confirmed ZigZag points as the swing start and end, and draw the Fibonacci tool between them. This gives objective anchor points, but the levels are still not a guarantee that price will react.
What is the difference between depth, deviation and backstep?
In the MetaTrader version, depth is the minimum number of candles between swing points, deviation is the minimum price move to count as a new swing, and backstep is the minimum number of candles between consecutive highs or lows.