Gann Made Easy Indicator: A Regression Through Days

Written by Dominic Walsh · Published · Last updated

The gann made easy indicator borrows the name but not the geometry. There is no square of nine here and no fixed angle. A straight line gets fitted through five daily midpoints, and that line is what price has to cross.

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 3: GannMidLine, BuySignal, SellSignal
Alerts popup
Inputs 5

On the chart: plots and colours

A gold `GannMidLine` slopes across the chart.

`BuySignal` uses arrow 233 and `SellSignal` uses 234.

A trend object extends the fitted line.

Marks sit `InpArrowOffsetPts` `20` points from the candle.

  • GannMidLine: line, gold, width 2
  • BuySignal: arrow, lime, width 2, arrow code 233
  • SellSignal: arrow, red, width 2, arrow code 234
Gann made easy indicator fitted midline and cross arrows on the EURUSD H1 chart.
Gann made easy indicator fitted midline and cross arrows on the EURUSD H1 chart.

What happens behind it

Daily midpoints anchor it

The code reads the high, low, open and close of the last `InpLookbackDays` `5` daily bars. Each day contributes a midpoint, and those five points are all the line ever sees.

Least squares does the fitting

A standard regression finds the slope and intercept that best fit those points. The slope then converts from price per day into price per second, which is how the line reaches across an intraday chart.

Range confirms the cross

iATR at `InpATRPeriod` `14` times `InpATRMultiplier` `1.0` sets a minimum. A close has to clear the line by that much, which rejects a drift across it.

Making it useful

The `GannMidLine` slopes, so the level it sits at changes every bar.

The line updates when a new daily bar completes, not tick by tick.

Five days is a short fit, so the slope changes noticeably each day.

Nothing here uses Gann angles, squares or time cycles.

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

One route ships here. `InpEnableAlerts` arrives true and raises a terminal message on a confirmed cross. No handset, mail or sound option exists in this build. The guard limits it to one message per closed bar.

Every Gann Made Easy Indicator input

Core settings

Setting What it does Default
InpLookbackDays Gann angle lookback (days). Daily bars in the regression, default `5`. 5
InpATRPeriod ATR confirm period. Bars in the confirmation range reading, default `14`. 14
InpATRMultiplier ATR multiplier for confirm. Range units a close must clear the line by, default `1.0`. 1.0

Display settings

Setting What it does Default
InpArrowOffsetPts Arrow offset (points). Points between a mark and the candle, default `20`. 20

Alert settings

Setting What it does Default
InpEnableAlerts Enable signal alerts. Terminal message on a confirmed cross, default `true`. on
Gann made easy indicator inputs panel with InpLookbackDays and InpATRMultiplier.
Gann made easy indicator inputs panel with InpLookbackDays and InpATRMultiplier.

Suitable charts

The fit uses daily data, so it suits intraday charts underneath. EURUSD H1 is the reference chart, where five days gives a slope that lasts a week. On M5 the line barely moves within a session. On daily bars it flattens.

Where care is needed

The name promises Gann geometry that this build does not contain.

A five-day regression is short, so one strong day can swing the whole slope.

`InpATRMultiplier` `1.0` is a full range unit, which rejects many genuine crossings.

Copy the compiled Gann Made Easy 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.

Background reading on the method behind the Gann Made Easy Indicator: John Murphys Charting Made Easy Ebook at StockCharts ChartSchool, Singapore Swap Offer Rate on Wikipedia.

Download the Gann Made Easy Indicator for MT4 and MT5

The zip holds the compiled Gann Made Easy 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

Does this use real Gann angles?

No. The build fits a least-squares line through five daily midpoints, which is ordinary regression rather than Gann geometry. There is no square of nine, no fixed angle and no time cycle anywhere in the code.

What does InpLookbackDays 5 fit?

Five daily midpoints, each the middle of that day’s range. Five is a working week, so the line describes the current week’s drift. Lengthening it steadies the slope and slows how fast it responds.

How does InpATRMultiplier 1.0 filter?

A close must clear the line by a full fourteen-bar range unit before a mark appears. That is a demanding filter, which is deliberate, since a sloping line gets touched constantly without meaning much.

Why does the GannMidLine keep moving?

It has a slope, so the price it sits at changes with every bar that passes. It also refits when a new daily bar completes, which can shift the whole line rather than just extend it.

Are results guaranteed?

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

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