Skip to content

About the Gann Fan Expert Advisor

The Gann Fan Metatrader 4 Forex Robot is an expert advisor that mimics the Gann Fan on the chart and trades along with its trend.

The Gann Fan is based on the idea that the market is geometrical and cyclical in nature.

However, this expert advisor is not exclusively built on the Gann Fan indicator.

Two moving averages are also added to spice things up.

Price changes are spotted using support and resistance levels that are an integral part of the diagonal lines or Gann angles.

The Gann Fan forex robot deploys a set of logic that divides time and price into proportionate parts using the indefinite extension of each Gann angle.

Carrying out back testing on the Gann Fan expert advisor is only possible when deployed on open prices.

Free Download

Download the “Gann Fan.mq4” MT4 robot

Key Features

Automated Gann Angle Construction

The EA identifies swing highs and lows to draw Gann Fan lines automatically, mapping trend slopes and potential reversal zones.

Angle-Based Entries

Executes trades when price interacts with significant Gann angles—such as 1×1, 1×2, 2×1 lines—for trend-following or bounce setups.

Trend & Volatility Filters

Optional filters like moving average alignment or minimum volatility levels help validate angle interactions and avoid weak signals.

Smart Trade Management

Includes stop-loss and take-profit placement based on angle distance or fixed pips, plus optional trailing stops to protect gains.

Strategy Tester Report

Find below the Gann Fan forex robot strategy tester report for the EUR/USD forex pair on the Daily chart.

Overall Performance

The EA made a total profit of $15622.58 from a total of 242 trades.

The largest winning trade generated $1984.65 in profits, while the largest losing trade generated a loss of $708.47.

Statistics:

Bars in test: 2587 ticks modelled

Initial deposit: $10000.00

Total net profit: $15622.58

Total trades: 242

Largest profit trade: $1984.65

Largest loss trade: -$708.47

Consecutive wins: 5

Consecutive losses: 1

How the EA Works

  • Identifies swing high/low points to generate Gann Fan angle lines automatically.
  • Monitors price for interaction with selected Gann angles for entry signals.
  • If enabled, applies trend alignment or volatility filters before executing trades.
  • Places stop loss and take profit based on angle spacing or fixed pip distances.
  • Optionally trails stops as price moves favorably along the angle.

Download Now

Download the “Gann Fan.ex4” Metatrader 4 robot

Parameters & Settings

  • SwingLookback — number of bars to detect swing points for fan construction.
  • FanAngles — define which Gann lines to use (e.g., 1×1, 1×2, 2×1).
  • EnableTrendFilter — optional trend alignment (e.g., MA or ADX) for signal validation.
  • MinVolatility — minimum pip or ATR movement required for valid entries.
  • StopLossPips — risk exit distance from entry.
  • TakeProfitPips — fixed or angle-derived target levels.
  • UseTrailing — enable trailing; includes TrailingStart and TrailingStep parameters.

Recommended Trading Setup

  • Pairs: EURUSD, GBPJPY, USDCHF — pairs with clean swing and angle behavior.
  • Timeframe: H1 or H4 to optimize angle clarity and manageable trade frequency.
  • Account Type: ECN or low-spread broker for precise execution around angles.
  • Risk: 0.5%–1% of account equity per trade, aligned with your risk tolerance.
  • Strategy: Combine with momentum or trend filters for stronger validation.

FAQ

Do I need to draw Gann lines manually?

No — the EA automatically identifies swing points and constructs the Gann Fan internally.

Can it trade both bounces and breakouts?

Yes — you can configure entries on angle touch for reversals or on breakout beyond angles for trend continuation.

Is the trend filter required?

No — it’s optional. Including a trend filter enhances signal validity in uncertain market phases.

How do I avoid false signals in consolidation?

Use MinVolatility and trend filters to reduce entries during low-movement or ranging markets.

How can I test it safely?

Use the included .set file in a demo account for at least 30 days across variable markets to gauge performance before live deployment.

Summary

Gann Fan EA for MetaTrader 4 combines geometric trend structure with systematic automation.

Using Gann Fan angles drawn dynamically from market action enables structured entries, risk controls, and optional trailing for disciplined trend trading.

Download the free EA, test it with the provided settings, and customize to fit your trading edge.

Share this post!