Gann Toolkit MT5
- 指标
- 版本: 1.0
- 激活: 5
Gann Toolkit MT5 is an indicator for MetaTrader 5 that draws W.D. Gann's price and time tools from the swings it confirms: Square of 9 levels, Gann fan angles and the Gann box. It also draws the HiLo Activator and swing line of the free Gann HiLo Swing. A multi-symbol HiLo trend table and alerts are included.
The levels, angles and box use confirmed swing pivots on closed bars. They change only when a new swing is confirmed.
Quick start
- Attach the indicator to a chart. The HiLo line, swing line, Square of 9 levels, fan and box appear.
- Pick the Square of 9 anchor and step (default: latest swing pivot, 45 degrees). Choose "a price I enter" for a fixed anchor.
- Set the table symbols and timeframes (default: your list of five symbols, M15,H1,H4,D1). Click a cell to open that chart.
- For alerts, switch on sound, push notification or e-mail in the inputs. The pop-up is on by default.
What you see on the chart
- Square of 9 levels (gold) above and below the latest swing low or high, or a price you enter, labelled in degrees.
- Gann fan from the latest swing pivot: 1x8, 1x4, 1x3, 1x2, 1x1, 2x1, 3x1, 4x1, 8x1.
- Gann box over the last swing high and low, divided in eighths and thirds in price and in time.
- HiLo Activator line, swing line and new-trend arrows.
- A table of symbols and timeframes: UP or DOWN, and the closed bars since the last new trend. Click a cell to open that chart.
How the levels are built
- Square of 9: level = (square root of the anchor plus or minus n times the step divided by 180), squared. The price is first scaled to four digits (1.1329 becomes 11329, 4159.28 stays 4159.28). So a 45-degree step is close to 1% of the price on any symbol. A "price in points" option is there too.
- Fan: the 1x1 angle moves at the last completed swing's own speed (its price change divided by its bars), or at a value you set. It runs upward from a swing low and downward from a swing high.
- Box: it spans the last swing high and low. Its time side repeats the swing's length once.
- Swings: the 2-bar swing chart, which is the same engine as Gann HiLo Swing.
Who it is for
This indicator is for traders who use Gann's levels and angles. It draws them the same way on every chart, so you do not place them by hand. If you only need the HiLo trend line, the free Gann HiLo Swing is enough. The toolkit places no orders.
Inputs
| Input | Default |
|---|---|
| HiLo period | 3; new trend needs the swing chart - on; draw the line, arrows and swing line |
| Square of 9 | on; anchor - latest swing pivot (or latest low, latest high, a price I enter); price scale - four digits; step - 45 degrees; levels above and below - 6; alert when a bar closes across a level - on |
| Gann fan | on; 1x1 scale - auto from the last swing (or my value); all angles - on |
| Gann box | on; also divide in thirds - on |
| HiLo table | on; symbols - my list (EURUSD, GBPUSD, USDJPY, XAUUSD, BTCUSD) or Market Watch; timeframes - M15,H1,H4,D1; fresh cell - 3 bars or less |
| Closed bars to calculate | 3000; colours; font size |
| Alerts: pop-up (on), sound, push notification, e-mail | - |
Level spacing
This is the distance from the anchor to the first level above at a 45-degree step, at September 2026 prices. EURUSD is about 0.0169, GBPUSD about 0.0183, USDJPY about 1.99 and XAUUSD about 32. A 90 or 180-degree step gives wider levels.
How it was checked
- The HiLo line, swings and new trends are the engine of the free Gann HiLo Swing. That engine matched an independent Python calculation on every bar. It also passed a tick-by-tick repaint test in the Strategy Tester (XAUUSD H1, 91 million ticks, 0 changed signals).
- The Square of 9, fan and box are redrawn only when a new swing pivot is confirmed on a closed bar.
Alerts and Expert Advisors
Alerts cover a new trend on the chart and a bar closing across a Square of 9 level. They also cover new trends in the table, sent as one message. Pop-up (on), sound, push notification and e-mail are switched separately. Nothing is sent while history loads or in the Strategy Tester.
Buffers: 0 new uptrend, 1 new downtrend, 2 HiLo line, 3 its colour, 4 swing line.
Related products
- Gann HiLo Swing — free; the same HiLo line and swing engine, without the levels, fan, box and table.
- All my products on MQL5
Questions
- Are the levels support and resistance? They are reference prices from Gann's method. Price may react near them or pass through. The indicator does not predict which.
- Why did the levels move? A new swing pivot was confirmed, so the anchor changed. Choose "a price I enter" to keep a fixed anchor.
- Does it repaint? No. Everything comes from closed bars. The drawings change only when a new pivot is confirmed.
- How is it different from Gann HiLo Swing? It uses the same trend engine. The toolkit adds the Square of 9, fan, box, the multi-symbol table and level alerts.
If it helps your trading, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading involves risk. Gann's tools are a way of reading the chart; they do not predict the market, and past behaviour around a level does not show what price will do next.
