[Standard Indicator Explanation Episode 2] How to Use ZigZag — Eliminate market noise and leave only the "peaks and valleys," but note that the last line will be rewritten
"The candlesticks are so jagged that I can't tell which is the high actually and which is the low."
"When ZigZag is drawn, it neatly connects the highs and lows. But when I looked the next day, the line shape had changed."
These kinds of voices often reach us at the "Indicator Laboratory."
Many people think ZigZag is like an arrow that tells you turning points in the market. But fundamentally it is a completely different tool. ZigZag is not about predicting the future; it removes the fine tremors and keeps only moves beyond a certain magnitude, acting as a "cleanup crew."
In other words, what ZigZag measures are the past footprints of where the market direction changed significantly. It erases small noise and connects only the highs and lows with a line, showing the market's backbone.
1. What ZigZag is (by analogy)
Imagine a mountaineering route map.
If you draw every tiny up and down step, the line becomes messy, and you can't tell which are mountains or valleys. So you connect only "from that summit to the next valley base" with a straight line, and you can clearly see the overall path. What ZigZag does is exactly this kind of route map creation.
A rough outline of the idea consists of three steps:
① Remember the most recent high (or low)
② If it moves in the opposite direction by a certain amount, mark that previous place as a mountain (or valley)
③ Connect the marks with a straight line
Here, the "certain amount" is the heart of ZigZag. If the threshold is small, it captures finer mountains and valleys; if large, only the big waves remain. How the threshold is set (by price range or by percentage) depends on the indicator being distributed.
As shown in Figure A, simply grasping the flow of "remember → mark → connect" is enough.
2. How it looks on the screen and how to read it
When placed on a chart, a single jagged line bends over the candles. The roles of the line are as follows (colors vary by distributor).
ZigZag line (confirmed parts): the line connecting highs and lows. An analogy: "the clean copy of the hiking route with a pen"
The turning points: marks that this spot was a mountain (high) or valley (low). An analogy: "signposts for the summit and the valley"
The last segment on the right edge: a line that is not yet confirmed. An analogy: "pencil sketch"
Rules for reading are simple.
If both highs and valleys rise compared to before (clip up) → uptrend formation
If both highs and valleys fall compared to before (clip down) → downtrend formation
If the highs rise but the valleys fall, or vice versa, causing a mismatch → a form with unclear directional feeling
This is the concept of consecutive higher highs and lower lows in Dow Theory. ZigZag can save you the trouble of confirming this with your own eyes.
And the most important caution with this tool is here. The rightmost "pencil sketch" segment is redrawn every time the price moves. The place that now looks like a valley may become a valley after several bars. This property is generally called "repainting." Let's look at Figure B to see the difference between the confirmed part and the rewritten part.
3. Installation and settings in MT4
ZigZag is a common indicator that already comes with the MT4 data folder under Examples. First, look for the "Examples" item in the Navigator. If you can't find it, or you are using a different distributor, install it using these three steps.
In MT4, choose File → Open Data Folder, then go to MQL4 → Indicators
Place the obtained file (.mq4 or .ex4) into that folder
Restart MT4 or right-click in the Navigator and choose "Refresh"
Once the name appears in the Navigator, drag it onto the chart to display it.
Note that many sources exist. Be sure to verify that the file comes from a trustworthy source to avoid viruses or tampering.
I will introduce values commonly seen in MT4’s own defaults. Even with the same name, the author may give different names or initial values, so always check the parameter screen of your indicator.
Depth (a common initial value is 12): how many bars of range to look at when determining highs and lows. Increasing this leaves only larger waves
Deviation (often the same as 5): the minimum price range considered a reversal. Bigger values reduce the number of lines. Most implementations specify in price points; it varies by implementation. On accounts with higher precision, 5 can be a very small range, so please be careful
Backstep (often the same as 3): how many bars to skip between mountains and valleys. It helps reduce small back-and-forths
Our basic usage is to use it not as a buy/sell signal but as an auxiliary line to view past structure. We believe this view makes it easier to deal with the repainting weakness.
4. Common methods (standard uses)
From here, we cover three uses commonly described in the market. The numeric values are examples and not a definitive rule.
Technique 1: Confirm rising high/low with Dow Theory
Entry condition: Look at the two most recent confirmed highs and two confirmed lows (four points in total), all of which are rising (or falling for a short sale). Then consider buying after confirming a rebound from the confirmed valley
What to skip: The directions of highs and valleys are contradictory. Or the points used for judgment exist only in the rightmost "pencil sketch" segment
Stop loss / exit: For stop loss, a little below the most recent confirmed valley (or above for a short). In addition to the spread, allow roughly half to one times the ATR (average true range) as a buffer. An approximate target is near the previous mountain
Figure C shows the decision flow for this method. Please answer the three questions in order.
Technique 2: Find the starting point using Fibonacci
Entry condition: From the confirmed large valley to the mountain, draw the Fibonacci retracement using MT4’s standard tool. When levels around 38.2%, 50%, and 61.8% align with other supports (like horizontals), consider the rebound and evaluate
What to skip: The mountain or valley used as the starting point is in the rightmost "pencil sketch" segment. Only one supporting evidence exists
Stop loss / exit: If you exceed the starting valley (mountain for a short), the idea is considered invalid and you retreat. The exit is near the starting mountain (valley)
Technique 3: Use as a mark for drawing horizontal lines
Entry condition: Draw horizontal lines at places where the confirmed mountains (valleys) are clustered within a few price ticks. When the price approaches there, check the wicks or reversals to consider
What to skip: The base of the horizontal line has only one point. Immediately before an important economic release
Stop loss / exit: Stop slightly outside the horizontal line. The exit is near the latest valley (mountain) on the opposite side
5. Situations where false signals are prone and countermeasures
ZigZag “false signals” are mostly related to repainting.
The last segment gets rewritten: Even if it looks like a mountain now, if prices move higher, the line is redrawn. Countermeasure: treat the rightmost segment as still pencil-sketch and exclude it from decision making
Past charts look perfect: When you look back, highs and valleys seem to line up exactly. But that’s because you drew the lines after knowing the outcome—it's a "hindsight map." As Figure D shows, comparing that time’s real-time view with the line reveals the difference
Confirmation is late: Highs and valleys are confirmed only after a reversal occurs from them. Waiting makes you late relative to the move. This delay cannot be avoided by design
Shape changes depending on settings: Changing Depth, etc., can alter the line shape even in the same market. The same settings may not suit every instrument or timeframe
Fine movements in range markets: Small highs and valleys proliferate, causing up- and down-steps to flip frequently. In such cases, it’s perfectly fine to skip using it
6. Combining with other tools
Moving average: Confirms the general direction. See whether the ZigZag’s rising phase aligns with the moving average direction
Fibonacci and horizontals: Use the highs and valleys found by ZigZag as starting points to identify responsive price zones (techniques 2 and 3)
ATR: Useful for gauging the magnitude of moves and setting stop-loss ranges. It also informs the choice of Deviation
What you can do starting today
Display ZigZag on the chart and check in the parameter screen what Depth, Deviation, and Backstep are set to
Veiw the chart for a few minutes and observe with your own eyes where the right-edge line moves and rewrites
Look at the two most recent highs and valleys and note whether they rise, fall, or contradict
Summary
ZigZag is a tool that eliminates market noise and leaves only the highs and lows, showing the market’s backbone. It excels in confirming higher highs and higher lows, locating the starting points for Fibonacci and horizontals, and organizing past structure.
However, the last segment is redrawn as prices move. Because of this property, using ZigZag’s line itself as a trading signal is often difficult. Also, the delays in confirmation and the shape changes due to settings are weaknesses. We believe the most user-friendly approach is to use ZigZag as a tool to organize the past rather than as a future-pinding signaling tool.
Note that this article introduces general usage and does not guarantee profits. Actual trading should be practiced with your own judgment and responsibility, preferably first with a demo account.