Home > Indicators > Pivot Trend

FreeXAUUSD

Pivot Trend — 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

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

ParameterDefaultDescription
ZZDepth12Swing window (bars on each side of a pivot)
ZZDev5ZigZag deviation (points)
ZZBackstep3ZigZag backstep
MA_Period50Trend moving-average period
———

Installation

  1. 1Put the downloaded .mq5 into MT5: File → Open Data Folder → MQL5 → Indicators.
  2. 2Restart MT5 (or refresh the Navigator) and drag it onto a chart.
  3. 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

Ready for a paid EA?

Once you're comfortable with the free tools, our tick-tested paid EAs are available on the MQL5 Market. Try free first, then decide.

See all products on MQL5 Market

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

Right after you sign up, you get a download link for a subscriber-only pack of our 13 MT5 indicators: compiled files (.ex5), source code and a setup guide. Then 8 emails on algo-trading essentials, reading backtests correctly and choosing a broker (one a day for the first 5 days, then 7, 14 and 30 days after signing up). You also get notified before each price rise of the versions sold on the MQL5 Market (launch pricing that steps up as copies sell). Our EAs are free on this site with a live account at a partner broker.

* Privacy strictly protected. You can unsubscribe at any time.