Skip to content

Premium collection — free download

M30 FVG Setup EA

Trades returns into M30 fair value gaps after an M1 structure break, stop beyond the tap and a 1:3 target, one trade per zone.

PremiumSmart moneyv1.0MetaTrader 5 (MQL5) Compiles with 0 errors Stop-loss on every trade
Strategy
Arms an M30 fair value gap when M1 price trades back into it and enters when an M1 candle closes through the micro swing formed at the tap.
Risk model
Risk-based position size, stop beyond the tap extreme or far edge of the gap plus a buffer, target at 3R, one trade per zone.

What it does

The Expert Advisor version of the M30 FVG Setup indicator. It keeps a list of live M30 fair value gaps and trades the first confirmed return into each one.

How it works

  1. On start it scans the last 200 M30 bars, and then every closed M30 bar, for three-candle gaps above the minimum size.
  2. When an M1 candle trades into a live zone, the zone is armed.
  3. The entry fires when an M1 candle closes through the micro swing formed at the extreme of the tap.
  4. The stop goes beyond the tap extreme or the far edge of the gap plus a buffer; the target is 3 × risk. Each zone trades once and expires after its lifetime.

How to use it

Attach it to an M1 chart (gold was the original use case). Keep the FVG timeframe well above the confirmation timeframe so zones are meaningful.

Settings

InputDefaultWhat it changes
FVG timeframeM30Zone source
Confirmation timeframeM1Entry trigger
Bars scanned on start200Initial zone history
Min gap size0.10 × ATRGap filter
Zone lifetime96Zone expiry
Micro swing length3Trigger sensitivity

Limitations

M1 entries are highly sensitive to spread and execution; a wide spread can erase the edge of a small stop. Fixed 3R targets ignore nearby obstacles.

Before you run it live

Use real-tick Strategy Tester runs, then a demo account with your broker's typical spread. Keep risk small while you learn how often zones fail in trending markets.

Key inputs

Key inputs of M30 FVG Setup EA
InputDefaultDescription
FVG timeframeM30Timeframe scanned for fair value gaps.
Confirmation timeframeM1Timeframe used for the structure-break entry.
Min gap size0.10 × ATR(14)Filters out small gaps (0 = off).
Zone lifetime96 barsFVG-timeframe bars a zone stays live.

Educational tools, not advice. Automated trading can lose money quickly. Indicators and Expert Advisors describe price; they do not predict it, and past behaviour does not guarantee future results. Test everything on a demo account first and never risk money you cannot afford to lose. See our disclaimer.

Keep exploring

Related mt5 expert advisors