Pivot Trend Indicator (Free, for XAUUSD)
Swing pivots in their trend context - the two things a pivot-breakout trader needs
A pivot break only means something in the direction of the larger trend. This indicator marks each confirmed swing high/low (dots) and plots a trend MA (default 50), so you can see at a glance whether a break of the last pivot is with the trend or against it. A pivot is only drawn once confirmed as the local extreme of its window - confirmed pivots never move.
Features
- ✓Confirmed swing highs/lows as dots (permanent once confirmed)
- ✓Trend MA (default 50) for directional context
- ✓The event to watch: a break of the last confirmed pivot in the MA's direction
- ✓Defaults tuned for XAUUSD - the same way of reading gold as our GOLD PIVOT EA
Free download
No registration, completely free, full source included. A compiled version (and MT4 build) is also free on the MQL5 Market.
Download (.mq5)Parameters
| Parameter | Default | Description |
|---|---|---|
| ZZDepth | 12 | Swing window (bars on each side of a pivot) |
| ZZDev | 5 | ZigZag deviation (points) |
| ZZBackstep | 3 | ZigZag backstep |
| MA_Period | 50 | Trend moving-average period |
| — | — | — |
Installation
- 1Put the downloaded .mq5 into MT5: File → Open Data Folder → MQL5 → Indicators.
- 2Restart MT5 (or refresh the Navigator) and drag it onto a chart.
- 3It works with the defaults; re-fit the parameters to your instrument.
Note
A visualisation tool, not a signal service. A with-trend pivot break is a setup, not a guarantee. As with every ZigZag, the newest still-forming leg is provisional until a new extreme confirms it - confirmed pivots are permanent.
Related tools