YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

GannPro MT5 Suite

An autonomous algorithmic trading suite for MetaTrader 5, combining a custom Gann Square‑of‑9 signal indicator with a fully self‑managing Expert Advisor that monitors the market and trades on its own.

Platform Language Modes License


Overview

GannPro MT5 Suite is a complete, two‑part trading system for the MetaTrader 5 platform:

  1. GannSignals — a chart indicator that detects high‑probability entries using W. D. Gann's Square‑of‑9 price geometry, confirmed by a stack of trend and momentum filters, and visualises a full trade plan (entry, stop, targets) on the chart.
  2. GannProEA — an autonomous Expert Advisor (trading robot) that runs the same signal engine and executes & manages trades hands‑free, with institutional‑style risk controls and a real‑time on‑chart cockpit.

The EA is designed around a simple goal: let the robot watch the market and act on every valid opportunity, in any condition, while protecting capital.


Key Features

Dual operating modes

Select the trading style that fits your goal — switch with a single input:

Mode Best for Behaviour
Swing / Long (GP_SWING) Trend‑riding, fewer/larger trades Wider ATR stop, reward‑driven targets, lets winners run
Scalping (GP_SCALP) Fast intraday churn Tight ATR stop, minimum‑pip floor, quick fixed reward:risk

Signal engine (shared by indicator & EA)

  • Gann Square‑of‑9 support/resistance projection from a rolling swing anchor
  • Gann HiLo directional trigger
  • Confirmation filters: EMA trend, RSI, ADX strength, and multi‑timeframe (H1) bias
  • Confirm‑on‑close logic and a minimum‑bars‑between‑signals guard to cut noise

Autonomous trade management

  • Risk‑percent position sizing (or fixed lot) based on the live stop distance
  • Break‑even stop migration once in profit
  • Trailing stop to capture extended moves
  • Partial close at a configurable target (optional)
  • One‑trade‑per‑bar and magic‑number trade isolation

Capital protection (risk guards)

  • Max daily loss % — stands down for the day if hit
  • Daily profit target % — optional lock‑in and stop
  • Max spread filter — skips trades in poor conditions
  • Max open positions cap
  • Trading session time window filter

JARVIS‑style cockpit

A live on‑chart panel reports mode, armed/paused status, current signal, open positions, floating P/L, daily P/L, account equity, spread and the H1 trend bias at a glance.


Verified Performance (Strategy Tester)

Headless backtest using the MetaTrader 5 Strategy Tester and the built‑in optimizer.

Setting Value
Symbol / Timeframe EURUSD · M5
Period 2026‑03‑01 → 2026‑06‑20
Modelling 1‑minute OHLC, 100% history quality
Initial deposit $10,000 · Leverage 1:100
Mode Swing
Metric Result
Net Profit +$917.05 (+9.2%)
Profit Factor 1.08
Gross Profit / Loss $12,923 / −$12,006
Max Drawdown 12.75%
Total Trades 197
Win Rate 42% (large winners offset frequent small losses)
Tuned inputs InpAdxMin=25, InpSwingSlAtr=1.0, InpSwingRR=1.5

Parameters were selected with the platform's optimizer over the test window. Past performance does not guarantee future results — see the disclaimer below.


Repository Structure

GannPro-MT5-Suite/
├── MQL5/
│   ├── Experts/
│   │   └── GannProEA.mq5        # Autonomous Expert Advisor (dual‑mode robot)
│   ├── Indicators/
│   │   └── GannSignals.mq5      # Gann Square‑of‑9 signal indicator
│   └── Presets/
│       └── GannProEA.set        # Optimized input preset (Strategy Tester)
├── config/
│   └── tester.ini               # Headless Strategy Tester configuration
├── LICENSE
└── README.md

Installation

  1. In MetaTrader 5, open File → Open Data Folder.
  2. Copy the files into the matching folders:
    • MQL5/Experts/GannProEA.mq5MQL5\Experts\
    • MQL5/Indicators/GannSignals.mq5MQL5\Indicators\
    • MQL5/Presets/GannProEA.setMQL5\Presets\
  3. Open MetaEditor, select each .mq5 file and press Compile (F7). Both should report 0 errors, 0 warnings.
  4. Restart MetaTrader 5 (or refresh the Navigator).

Usage

Run the Expert Advisor live (demo first)

  1. Enable Algo Trading on the toolbar.
  2. Drag GannProEA from Navigator → Expert Advisors onto a chart (EURUSD M5 recommended).
  3. On the Common tab tick Allow Algo Trading; on Inputs, optionally Load the GannProEA.set preset.
  4. Choose InpMode = Swing or Scalp, set your InpRiskPercent, and click OK.
  5. The cockpit panel appears and the robot begins monitoring; it arms on the next valid signal.

Reproduce the backtest

Point the MetaTrader 5 Strategy Tester at GannProEA, load MQL5/Presets/GannProEA.set, and use the settings in config/tester.ini (EURUSD, M5, the dates above, 1‑minute OHLC model).


Selected Inputs

Input Default Description
InpMode Swing Trading style: Swing or Scalp
InpRiskPercent 1.0 Risk per trade as % of balance
InpFixedLot 0.0 Fixed lot (overrides risk % when > 0)
InpMaxSpreadPips 3.0 Skip trades above this spread
InpMaxDailyLossPct 5.0 Daily loss limit before standing down
InpSwingSlAtr 1.0 Swing stop = ATR × this
InpSwingRR 1.5 Swing reward : risk
InpScalpSlAtr 1.0 Scalp stop = ATR × this
InpScalpRR 1.5 Scalp reward : risk
InpUseBreakeven true Move stop to break‑even in profit
InpUseTrailing true Trail the stop on extended moves
InpUseSession false Restrict trading to a time window

The signal filters (InpUseEmaFilter, InpUseRsiFilter, InpUseAdxFilter, InpUseMtfFilter, InpUseGannFilter) and their periods are fully configurable.


Risk Disclaimer

This software is provided for educational and research purposes only and is not financial advice. Trading leveraged products such as forex and CFDs carries a high level of risk and can result in the loss of all invested capital. Backtested results are hypothetical, may be subject to optimization bias, and do not guarantee future performance. Always test on a demo account first and never trade with money you cannot afford to lose. The authors accept no liability for any financial loss incurred through the use of this software.


License

Released under the MIT License.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support