Gann Sq 9 Indicator: Levels At Four Angles Each Way

Written by Dominic Walsh · Published · Last updated

The gann sq 9 indicator turns one price into nine. It anchors to the latest swing, then projects levels at 22.5, 45, 90 and 180 degrees on the square of nine wheel. Four resistance lines run above the anchor and four support lines below it.

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 9: GannSq9 Pivot, R1 22.5deg, R2 45deg, R3 90deg, R4 180deg, S1 22.5deg, S2 45deg, S3 90deg, S4 180deg
Alerts popup, push notification, email, sound
Inputs 8

What the Gann Sq 9 Indicator draws on the chart

GannSq9 Pivot is the yellow line at the anchor price.

R1 through R4 shade from light salmon to red as the angle grows.

S1 through S4 shade from pale green to green below the anchor.

Nine lines in all, so the chart gets busy quickly.

  • GannSq9 Pivot: line, yellow, width 2
  • R1 22.5deg: line, light salmon
  • R2 45deg: line, salmon
  • R3 90deg: line, tomato
  • R4 180deg: line, red, width 2
  • S1 22.5deg: line, pale green
  • S2 45deg: line, lime green
  • S3 90deg: line, sea green
  • S4 180deg: line, green, width 2
Gann Sq 9 indicator on EURUSD H1 with four levels above and below the anchor
Gann Sq 9 indicator on EURUSD H1 with four levels above and below the anchor

How the Gann Sq 9 Indicator calculates its values

Choosing the anchor

A swing needs `SwingBars` `12` bars on each side that fail to beat it. `AnchorOnHigh` `true` takes the latest swing high, and setting it false takes the latest swing low instead.

Projecting the angles

GannLevel takes the anchor price and a degree figure. The wheel maps price onto a spiral, so a fixed rotation becomes a price step that grows with the anchor. Four angles run each way from there.

Why the angles double

22.5, 45, 90 and 180 each double the one before. That spacing widens as it goes, so the outer levels sit far from the anchor while the inner two stay close.

How to read the signals

The yellow line is the anchor and everything else is derived from it.

Inner levels sit close together and outer ones spread wide.

A fresh swing replaces the anchor and moves all nine lines.

Switching `AnchorOnHigh` flips which swing the whole set hangs from.

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

`EnableAlerts` arrives switched on and `EnablePopup` does the talking. `EnablePushNotify`, `EnableEmail` and `EnableSound` all begin false. `SoundFile` picks the clip. The level test reads two completed closes, one message per bar.

Every Gann Sq 9 Indicator input

Core settings

Setting What it does Default
SwingBars Swing detection bars. Bars each side of the anchor swing, default `12`. 12
AnchorOnHigh true=anchor latest swing high, false=latest swing low. Anchors to the latest swing high, default `true`. on

Alert settings

Setting What it does Default
EnableAlerts Master switch for the degree level alerts, default `true`. on
EnablePopup Terminal dialog on a level crossing, default `true`. on
EnablePushNotify Phone push on a level crossing, default `false`. off
EnableEmail Mail delivery on a level crossing, default `false`. off
EnableSound Sound playback on a level crossing, default `false`. off
SoundFile Wav clip for the level alert, default `alert.wav`. alert.wav
Gann Sq 9 indicator inputs: SwingBars and AnchorOnHigh
Gann Sq 9 indicator inputs: SwingBars and AnchorOnHigh

Settings that fit your chart

Square of nine levels scale with price, so they suit any instrument. EURUSD H1 is the reference chart, where `SwingBars` at `12` picks a swing lasting half a day either side. On M5 the anchor changes often. On H4 the whole set can hold for weeks.

When the Gann Sq 9 Indicator fails

Nine lines on one chart is a lot, and some will sit near price by chance.

The whole set depends on a single anchor bar, which confirms twelve bars late.

Square of nine geometry is a convention with no mechanism behind it.

Copy the compiled Gann Sq 9 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 Sq 9 Indicator: Snake in the tunnel on Wikipedia, Correlation Coefficient at StockCharts ChartSchool.

Download the Gann Sq 9 Indicator for MT4 and MT5

The zip holds the compiled Gann Sq 9 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 does AnchorOnHigh choose?

Which swing the whole set hangs from. With it true the latest confirmed swing high becomes the anchor. Set it false and the latest swing low takes over, which moves all nine lines at once.

Why does R1 22.5deg double each step?

Each doubles the one before: 22.5, 45, 90 and 180 degrees on the wheel. That gives close spacing near the anchor and much wider steps further out, which is the shape the method intends.

How strict is the SwingBars 12 anchor test?

Very. The anchor must beat every bar within twelve positions on both sides. On EURUSD H1 that is half a day either way. The anchor therefore changes rarely, and it confirms twelve bars after the fact.

Do the R1 and S1 levels sit symmetrically?

Not in price terms. The wheel maps price onto a spiral, so a rotation upward and the same rotation downward produce different distances. That asymmetry is inherent to the construction.

Are results guaranteed?

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

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