All Pivot Points Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

The all pivot points indicator plots three prices from yesterday’s daily bar and watches two of them. Touch the support and close back above it on an up bar, and a buy mark prints. The resistance side works the same way. Note the name: three levels ship here, not a full set.

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 5: PP, R1, S1, Buy, Sell
Alerts popup, push notification, email, sound
Inputs 7

What the All Pivot Points Indicator draws on the chart

Three flat lines and two marks.

`PP` runs gold straight across the chart.

`R1` sits above it in tomato.

`S1` sits below in medium sea green.

A lime `Buy` mark prints under a rejected candle.

A red `Sell` mark prints above one.

  • PP: line, gold
  • R1: line, tomato
  • S1: line, medium sea green
  • Buy: arrow, lime, width 4, arrow code 233
  • Sell: arrow, red, width 4, arrow code 234
all pivot points indicator: The three levels and a rejection mark on EURUSD H1.
The three levels and a rejection mark on EURUSD H1.

How the All Pivot Points Indicator calculates its values

Yesterday, in three numbers

High, low and close do it. Averaging those three gives the pivot. Doubling the pivot and taking away the low gives resistance. Taking away the high instead gives support.

A rejection, not a break

The test looks for a failure. A buy needs the low to reach support while the close finishes above it. The candle must also close above its open.

About that name

Only three levels exist here. No second or third band appears in the source, and no method choice is offered. What you get is the classic pivot with its nearest pair.

How to read the signals

The gold line is yesterday’s balance point.

A mark means a level held on a closed bar.

Levels stay flat all day and step at the new session.

Price above the gold line is the simplest read there is.

A day that never reaches either outer level prints nothing.

`ArrowOffsetPoints` `35` lifts marks clear of the candle.

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

`EnableAlerts` sits over the rejection alerts and ships true with `EnablePopup`. `EnablePushNotify` reaches a phone, `EnableEmail` posts mail and `EnableSound` plays `SoundFile`. Those three start off and each rejection reports once.

Every All Pivot Points Indicator input

Display settings

Setting What it does Default
ArrowOffsetPoints Gap between a mark and its candle, `35`. 35

Alert settings

Setting What it does Default
EnableAlerts Top control over the rejection alerts, `true`. on
EnablePopup Terminal message at a rejection, `true`. on
EnablePushNotify Mobile terminal push, `false`. off
EnableEmail Outgoing mail at a rejection, `false`. off
EnableSound Play a clip at a rejection, `false`. off
SoundFile Clip that plays, `”alert.wav”`. alert.wav
all pivot points indicator: Inputs panel with ArrowOffsetPoints and the alert routes.
Inputs panel with ArrowOffsetPoints and the alert routes.

Settings that fit your chart

Daily levels only make sense where a day contains several bars. EURUSD H1 is the reference chart. Price reaches an outer level most days there. On M5 the lines sit far away for hours. On daily bars each level lasts one candle.

When the All Pivot Points Indicator fails

A quiet yesterday puts the levels too close together.

A gap opens the day already past a level.

One rejection candle says nothing about the rest of the day.

Three levels leave a wide-range day with nothing above R1.

Copy the compiled All Pivot Points 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: Pivot Point Strategy.

Download the All Pivot Points Indicator for MT4 and MT5

The zip holds the compiled All Pivot Points 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

How are the R1 and S1 levels derived?

By doubling the pivot and subtracting one extreme of yesterday’s bar. Taking away the low gives resistance and taking away the high gives support, so the two sit at mirrored distances either side of the middle.

Does the indicator draw a full pivot set?

No. Three plots exist in the source, the pivot with one resistance and one support. Despite the name there is no second or third band and no alternative method to choose from.

What has to happen at S1 for a Buy mark?

Three things on one closed bar. The low has to reach the support line, the close has to finish above it, and the candle has to close above its own open. A touch on its own prints nothing.

Does the PP line move during the session?

No. All three prices come from yesterday’s completed daily bar, so they stay flat until a new day starts. That is exactly what makes them useful as fixed reference points intraday.

Are results guaranteed?

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

Category: this is part of our Support and Resistance collection. Next, plainly, browse more Support and Resistance 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