Gann Multi Trend Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

This one genuinely reads four timeframes. The gann multi trend indicator runs a Gann Hi-Lo state on M15, H1, H4 and daily bars, prints all four in a corner dashboard, and only puts an arrow on your chart when every one of them points the same way.

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: GannMT Buy, GannMT Sell
Alerts popup
Inputs 12

Plots, colours and placement

Two arrow plots and a dashboard.

`GannMT Buy` uses arrow 233 in lime.

`GannMT Sell` uses arrow 234 in red.

Marks sit `ArrowOffsetPts` `30` points clear.

The dashboard lists all four timeframes.

`ColUp` and `ColDown` colour each row.

  • GannMT Buy: arrow, lime, width 2, arrow code 233
  • GannMT Sell: arrow, red, width 2, arrow code 234
gann multi trend indicator: The four-timeframe dashboard and an agreement mark on EURUSD H1.
The four-timeframe dashboard and an agreement mark on EURUSD H1.

What feeds each plot

One state per timeframe

`GannPeriod` `5` sets each reading, and every result comes out either up or down. That single state is all any timeframe contributes.

Lining up the bars

iBarShift does the mapping. For your current bar’s time it finds the matching bar on each higher timeframe, so all four states describe the same moment.

The agreement test

All four have to match. The code also reads the previous bar’s four states, so a mark prints only where agreement is new rather than continuing.

What you act on

The dashboard shows each timeframe separately.

An arrow means all four agreed for the first time.

Agreement across daily bars is rare.

Disagreement in the dashboard is the normal state.

A five-bar Gann period is fast on every timeframe.

The mark describes a moment, not a duration.

Alert channels in this build: popup, one message per closed bar.

`EnableAlerts` is the single alert control and ships true. It raises a terminal message on the closed bar where all four timeframes first agree. This build carries no phone, mail or sound route.

Every Gann Multi Trend Indicator input

Core settings

Setting What it does Default
GannPeriod Gann Hi-Lo period. Bars in each Hi-Lo reading, `5`. 5

Display settings

Setting What it does Default
ArrowOffsetPts Arrow offset (points). Points between mark and candle, `30`. 30
ShowDashboard Show MTF dashboard. Show the four-row readout, `true`. on
DashCorner 0=TL,1=TR,2=BL,3=BR. Which corner, `1`. 1
DashXOffset Dashboard X offset. 12
DashYOffset Dashboard Y offset. 24
DashFontSize Dashboard font size. Readout text size, `10`. 10
DashFontName Readout typeface, `”Consolas”`. Consolas
ColUp Up row colour, `clrLime`. lime
ColDown Down row colour, `clrRed`. red
ColHeader Header colour, `clrWhite`. white

Alert settings

Setting What it does Default
EnableAlerts Alert when all 4 TFs align. Alert when all four align, `true`. on
gann multi trend indicator: Inputs panel with GannPeriod and the dashboard settings.
Inputs panel with GannPeriod and the dashboard settings.

Which pair, which timeframe

Four timeframes sit fixed in the code, so your chart choice only decides where marks land. EURUSD H1 is the reference chart. Agreement comes a few times a week there. On M5 the marks hit the same moments with finer placement.

Where it lets you down

A daily state changes rarely, so it gates everything.

Agreement often arrives after a move is well underway.

Four fast readings can align on noise.

The dashboard needs chart space to stay readable.

Copy the compiled Gann Multi Trend 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.

Download the Gann Multi Trend Indicator for MT4 and MT5

The zip holds the compiled Gann Multi Trend 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

Which four timeframes does GannPeriod run on?

M15, H1, H4 and D1. The source fixes those four rather than offering them as inputs, so the same set gets read whichever chart timeframe you load the tool onto.

Why does GannMT Buy need fresh agreement?

Because agreement can hold for many bars in a trend. The code compares the previous bar’s four states with the current ones, so an arrow prints where they first line up rather than on every bar after.

What does the ShowDashboard readout add?

The reason behind the arrow. Without it you only see marks. With it you can watch three timeframes agree while the daily holds out, which often tells you more than the arrow does.

Is GannPeriod 5 fast for a daily reading?

Yes, deliberately. Five daily bars covers a trading week, which turns often enough that the daily row still changes rather than gating the tool into permanent silence.

Are results guaranteed?

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

Category: this is part of our Trend collection. Also, truly, browse more Trend 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