Fibonacci Pivots Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

One pivot set answers one question. The fibonacci pivots indicator draws three at once, built from the daily, weekly and monthly bars, and gives each its own colour so you can see instantly whether a level in front of price belongs to this session or to this quarter.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 21: D1 P, D1 R1, D1 R2, D1 R3, D1 S1, D1 S2, D1 S3, W1 P, W1 R1, W1 R2, W1 R3, W1 S1, W1 S2, W1 S3, MN P, MN R1, MN R2, MN R3, MN S1, MN S2, MN S3
Alerts popup, push notification, email, sound
Inputs 10

What the build shows

Twenty-one levels, all on the price chart.

`D1 P` and its six levels trace gold.

Then `W1 P` and its six trace deep sky blue.

Finally `MN P` and its six trace magenta.

Each set carries three above and three below.

Nothing is drawn in a pane underneath.

  • D1 P: plot, gold
  • D1 R1: plot, gold
  • D1 R2: plot, gold
  • D1 R3: plot, gold
  • D1 S1: plot, gold
  • D1 S2: plot, gold
  • D1 S3: plot, gold
  • W1 P: plot, deep sky blue
  • W1 R1: plot, deep sky blue
  • W1 R2: plot, deep sky blue
  • W1 R3: plot, deep sky blue
  • W1 S1: plot, deep sky blue
  • W1 S2: plot, deep sky blue
  • W1 S3: plot, deep sky blue
  • MN P: plot, magenta
  • MN R1: plot, magenta
  • MN R2: plot, magenta
  • MN R3: plot, magenta
  • MN S1: plot, magenta
  • MN S2: plot, magenta
  • MN S3: plot, magenta
fibonacci pivots indicator: All three pivot sets around price, EURUSD H1.
All three pivot sets around price, EURUSD H1.

From bar to value

The centre of each set

Three prices, averaged. Each period’s high, low and close divided by three gives that set’s central level, which every other line in the set builds from.

Fractions of the range

The period’s range gets multiplied by the retracement ratios. Adding those to the centre gives the three levels above, subtracting gives the three below.

Mapping onto your chart

The code matches each of your bars to whichever daily, weekly or monthly bar covers it. `HistoryPeriods` `60` then bounds how far back all three sets draw.

Using it on a chart

Gold levels reset each day.

Deep sky blue levels reset each week.

Magenta levels, by contrast, hold for the month.

So two sets landing together carry more weight.

Meanwhile `ShowDaily` and `ShowWeekly` hide any set.

Every level comes from a completed period.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

Price reaching one of the drawn levels is what speaks. `EnableAlerts` decides whether it does and a prompt already lands on the terminal, while the device route, the mail note and the desktop ring behind `SoundFile` stay closed.

Every Fibonacci Pivots Indicator input

Display settings

Setting What it does Default
ShowDaily Draw the daily set, `true`. on
ShowWeekly Draw the weekly set, `true`. on
ShowMonthly Draw the monthly set, `true`. on
HistoryPeriods how many TF bars back to plot. Periods back the sets are drawn, `60`. 60

Alert settings

Setting What it does Default
EnableAlerts Whether a level touch speaks, `true`. on
EnablePopup A prompt lands on the terminal, `true`. on
EnablePushNotify A device is told as well, `false`. off
EnableEmail The note goes by mail, `false`. off
EnableSound The desktop rings it, `false`. off
SoundFile What it rings, `”alert.wav”`. alert.wav
fibonacci pivots indicator: Inputs panel, the three set switches above the history.
Inputs panel, the three set switches above the history.

Which chart earns the most from it

Three sets at once wants a chart where all three mean something. EURUSD H1 is the reference chart, where the daily set steps every twenty-four bars. On M5 the monthly levels sit far off screen. On D1 only the slower two matter.

Where the logic runs out

Twenty-one lines makes for a very crowded chart.

Fibonacci ratios here follow convention, not derivation.

A quiet period produces a narrow, unhelpful set.

Levels describe a finished period, not the current one.

Copy the compiled Fibonacci Pivots Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Related on forexmt4systems.com: Fibonacci Retracement Strategy.

Background reading on the method behind the Fibonacci Pivots Indicator: Fibonacci retracement on Wikipedia, Fibonacci Retracement at Investopedia.

Download the Fibonacci Pivots Indicator for MT4 and MT5

The zip holds the compiled Fibonacci Pivots Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What separates these from classic floor pivots?

The spacing. Classic levels are built from the range added directly to the centre, while these multiply the range by retracement ratios first, which places the three levels differently on each side.

Why do D1 P and W1 P use different colours?

So you can tell instantly which period a level belongs to. Gold for the day, deep sky blue for the week and magenta for the month means a cluster of two colours shows up without reading labels.

What does HistoryPeriods 60 limit?

How far back each set is drawn, counted in that set’s own bars. Sixty daily periods is about three months, while sixty monthly ones reaches back five years, so the three cover very different spans.

Should ShowMonthly stay on for a fast chart?

Often not. On a fast timeframe the monthly levels sit far enough away to be irrelevant, and switching that set off removes seven of the twenty-one lines for no loss of useful information.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Fibonacci Pivots Indicator as one input. Always backtest before trading live.

Category: this is part of our Oscillators collection. Also, browse more Oscillators for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment