MT5 Expert Advisor · XAUUSD M15

BBFP Breakout Grid EA for XAUUSD M15

A rule-based MetaTrader 5 EA built around GMT session boxes, previous-day Fibonacci pivots and a controlled grid. It waits for a closed M15 breakout, filters the setup with D1 pivot bias and ATR, then sizes the initial trade by risk. No martingale, no iCustom dependency and no indicator attachment required.

Trial and licensing: the EX5 on this page is a free trial build with a hardcoded expiry of 15 December 2026. After that date it alerts and stops. Lifetime licence is $300; source-code licence is $800. Contact AlgoSpecial or Telegram @bullionstrategy for a paid build. No profit or drawdown guarantee is made.

Download BBFP EA, Set Files and INI Files

Download the package or the individual files. The ZIP contains the compiled EX5, both risk presets, both tester INI files, README and SHA256 checksums. Source code is not included.

BBFP strategy guides

Session box breakout strategyHow S1/S2 GMT boxes work on XAUUSD M15.
Fibonacci pivot targetsHow previous-day pivots choose realistic TPs.
Controlled grid vs martingaleWhy shared stops and basket-risk caps matter.
BBFP Breakout Grid EA input parameters in MetaTrader 5 showing session boxes, breakout rules and risk settings

Real MT5 Inputs dialog for BBFP EA v1.01. The screenshot shows the session-box and breakout groups; load LOW_DD or HIGH_RISK from the download package for the exact preset values.

What the BBFP EA Does

BBFP is a session-box breakout EA for gold. It builds two GMT ranges on every trading day, then waits for a completed M15 candle to close outside the relevant box. The setup is checked against the previous completed D1 pivot, ATR volatility and box size before an order is allowed.

1. Session boxesS1 covers 23:00–06:00 GMT and S2 covers 06:00–13:00 GMT. The EA records each box's high and low from closed M15 candles.
2. Pivot contextThe previous D1 candle gives Pivot, R1, S1, intraday long/short and daily target levels. The pivot is a directional filter, not a separate indicator.
3. Closed breakoutA buy needs a completed close above the box high plus the buffer; a sell needs a close below the box low minus the buffer.
4. RiskThe initial lot is sized from account equity, risk percent, the shared box stop and tick-value loss. Grid additions use a separate basket-risk cap.

The grid is not a martingale recovery system. Every position in a basket shares the same invalidation stop and the same target. Grid additions are capped by InpMaxGridLevels, spacing and InpMaxBasketRiskPercent. If the shared stop is hit, the entire basket is closed by the broker.

Low-Risk vs High-Risk Presets

ProfileInitial riskMax basket riskGrid levelsSession useBest for
LOW_DD0.25%0.75%2 totalS1 onlyCapital preservation and first forward test
HIGH_RISK1.00%3.00%4 totalS1 + S2Aggressive testing with higher exposure

The M15 study used for these presets showed S1 breakouts behaved better than S2 in the tested sample, which is why LOW_DD disables S2. HIGH_RISK keeps both sessions for more opportunity, but it can produce larger drawdowns. Read the full low-risk vs high-risk guide.

Critical Inputs and Real-World Examples

InputWhat it doesExample
InpBoxTFTimeframe used to build boxes and confirm breakouts.M15 means a signal is evaluated only after an M15 candle closes.
InpBreakoutBufferPipsExtra distance beyond the box edge.Box high 3,950.00; 2 pips ($0.20) requires a close above 3,950.20 for a buy.
InpMaxBarsAfterSessionHow long a box remains valid after it closes.8 bars on M15 = two hours after the session ends.
InpMaxBoxRangeATRRejects boxes that are too wide relative to ATR.ATR 2.00 and max 6.0 rejects a box wider than 12.00 gold dollars.
InpUsePivotBiasRequires buys above the D1 pivot and sells below it.Prevents a buy breakout while price is still below the previous-day pivot.
InpRiskPercentRisk on the initial position.$10,000 × 0.25% = $25 initial risk in LOW_DD.
InpMaxBasketRiskPercentMaximum total risk of the grid basket at the shared SL.$10,000 × 0.75% = $75 maximum LOW_DD basket risk.
InpGridStepATRAdverse move required before another grid entry.ATR 2.00 × 0.75 = $1.50 spacing, subject to the 10-pip minimum.
InpMaxSpreadPipsBlocks entries when the broker spread is too wide.LOW_DD blocks entries above 2.5 gold pips ($0.25).
InpMaxDailyLossPercentEquity loss that disables new risk and can close positions.2% daily loss on $10,000 = $200 equity drawdown limit.

All 52 inputs are explained, with LOW_DD and HIGH_RISK values, in the BBFP EA settings guide.

BBFP Breakout Grid EA Strategy Tester result for XAUUSD M15

Real Strategy Tester output supplied with the EA package. This is a short sample, not a performance guarantee; run your own test with your broker data and costs.

The sample screenshot is intentionally shown as-is. One short test does not prove profitability. Validate the EA in Strategy Tester, then on demo, before using real capital.

Install BBFP EA in MetaTrader 5

1. Open data folderMT5 → File → Open Data Folder.
2. Install EX5Copy the EX5 to MQL5\Experts.
3. Install presetsCopy both .set files to MQL5\Presets.
4. AttachOpen XAUUSDm M15, attach the EA and load LOW_DD or HIGH_RISK.

Full steps and troubleshooting: install BBFP EA on MT5. For tester setup: BBFP Strategy Tester and INI guide.

BBFP EA FAQ

Does BBFP use iCustom or need the indicator attached?

No. The session-box and D1 pivot logic is built into the EA. It does not call iCustom and does not require the indicator to be on the chart.

Is this a martingale EA?

No. Grid additions are capped and the lot multiplier defaults to 1.0. Total basket risk is controlled by InpMaxBasketRiskPercent.

Why does LOW_DD disable Session 2?

The M15 study used for the presets showed S2 breakouts were weaker than S1 in the tested sample. LOW_DD trades S1 only; HIGH_RISK keeps both sessions.

Does the free EX5 expire?

Yes. The free trial build has a hardcoded expiry of 15 December 2026. The lifetime licence is $300 and source code is $800.

What account type is recommended?

A hedging account is recommended because grid positions remain separate. Netting accounts may merge grid entries.

Trading leveraged gold CFDs involves substantial risk. BBFP is a technical research tool, not a promise of profit. Historical results, sample tester output and set files do not guarantee future performance. Use demo first, verify broker costs and never risk money you cannot afford to lose.

🚀 Invite friends — Earn $5 You both get $5 credit on Go Ad · opencode.ai AI-Powered Coding Agent — Try Free Build apps, fix bugs & ship faster with opencode. Get $5 free credit when you join. × Ad · quo.com QuoPhone — $20 Visa Gift Card Free Sign up to Quo, subscribe 3 months, get a $20 Visa gift card. Atif's referral gift for you. ×