Fibonacci Ranges Real Time Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

Most Fibonacci tools draw a grid and stop. The fibonacci ranges real time indicator keeps watching. Whichever band price occupies gets a highlight that follows it, and the halves above and below the midpoint carry their own tints, so position inside the range reads at a glance.

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 2: FibRanges Buy, FibRanges Sell
Alerts popup, push notification, email, sound
Inputs 16

What you get on the chart

Two arrow plots plus a grid of objects.

`FibRanges Buy` prints lime at width 2.

`FibRanges Sell` prints red at the same width.

`RetraceColor` draws the level lines steel blue.

`ActiveZoneColor` fills the occupied band in gold.

Premium and discount halves take their own tints.

  • FibRanges Buy: arrow, lime, width 2, arrow code 233
  • FibRanges Sell: arrow, red, width 2, arrow code 234
fibonacci ranges real time indicator: The grid with the occupied band highlighted, EURUSD H1.
The grid with the occupied band highlighted, EURUSD H1.

How the numbers arrive

Finding the swing

Two settings locate it. `SwingLookback` `60` bars are searched, and `SwingPivotBars` `3` either side must confirm a pivot before it can anchor the grid.

Laying out the grid

Direction decides the order. In an uptrend each level is the swing low plus a fraction of the range; in a downtrend the same fractions come down from the swing high.

Following price

This is the real-time part. Every bar the code finds which pair of levels brackets the current price and fills that band, so the highlight moves as price does.

Making the output useful

The gold fill is always the band price occupies now.

Above the midpoint is premium, below it discount.

The tints make that split readable at a glance.

Marks need price within `SignalTolerancePts` `10` of a level.

The grid re-anchors when a new pivot confirms.

Thicker lines mark the two range extremes.

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

Price arriving at a level within the tolerance is what reports. `EnableAlerts` governs the lot and ships on with `EnablePopup`; the push, mail and audio routes behind `SoundFile` all begin closed and each touch reports once a bar.

Every Fibonacci Ranges Real Time Indicator input

Core settings

Setting What it does Default
SwingLookback bars used to find swing high/low. Bars searched for the anchoring swing, `60`. 60
SwingPivotBars bars left/right confirming a pivot. Bars either side confirming a pivot, `3`. 3
SignalTolerancePts proximity in points for arrows. How near a level a mark needs, `10`. 10

Display settings

Setting What it does Default
RetraceColor standard fib line color. steel blue
ActiveZoneColor highlight color when price inside zone. Fill for the occupied band, `clrGold`. gold
PremiumZoneColor premium half highlight (above 0.5). Tint above the midpoint, `clrTomato`. tomato
DiscountZoneColor discount half highlight (below 0.5). Tint below it, `clrMediumSeaGreen`. medium sea green
LineWidth Thickness of the level lines, `1`. 1
ShowZoneFill real-time rectangle highlight of active band. Highlight the occupied band, `true`. on
ShowDiscountPremium tint premium vs discount half. Tint the two halves apart, `true`. on

Alert settings

Setting What it does Default
EnableAlerts Whether a level touch reports, `true`. on
EnablePopup (see inputs panel) on
EnablePushNotify (see inputs panel) off
EnableEmail (see inputs panel) off
EnableSound (see inputs panel) off
SoundFile (see inputs panel) alert.wav
fibonacci ranges real time indicator: Inputs panel, the swing settings above the zone colours.
Inputs panel, the swing settings above the zone colours.

Where to point it

Sixty bars of swing search needs a chart where structure lasts. EURUSD H1 is the reference chart, covering two and a half days. Drop to M5 and the grid re-anchors constantly. Move to H4 and it spans a fortnight of trade.

Known limits

The grid jumps whenever a new pivot confirms.

A three-bar pivot is a small piece of structure.

Premium and discount are labels, not signals.

A ten-point tolerance is tight on a fast symbol.

Copy the compiled Fibonacci Ranges Real Time 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 Ranges Real Time Indicator: Fibonacci retracement on Wikipedia, Fibonacci Time Zones at BabyPips.

Download the Fibonacci Ranges Real Time Indicator for MT4 and MT5

The zip holds the compiled Fibonacci Ranges Real Time 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 makes this one real time?

The highlight follows price. Rather than drawing a static grid, it works out on every bar which pair of levels brackets the current price and fills that band, so the occupied zone is always the lit one.

What do PremiumZoneColor and DiscountZoneColor mark?

Which half of the range price sits in. Above the midpoint is premium and below it discount, and the two tints make that readable without checking the level prices themselves.

How does SwingPivotBars 3 confirm a pivot?

Three bars either side must fail to exceed it. That is a small window, so pivots are found quickly, and the grid re-anchors more often than a wider setting would allow.

Why is SignalTolerancePts 10 needed at all?

Because price rarely touches a level exactly. Ten points of tolerance lets a near miss count as an arrival, and on a symbol that moves further it is the first setting worth widening.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Fibonacci Ranges Real Time 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