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.
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
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.
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
| Profile | Initial risk | Max basket risk | Grid levels | Session use | Best for |
|---|---|---|---|---|---|
| LOW_DD | 0.25% | 0.75% | 2 total | S1 only | Capital preservation and first forward test |
| HIGH_RISK | 1.00% | 3.00% | 4 total | S1 + S2 | Aggressive 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
| Input | What it does | Example |
|---|---|---|
InpBoxTF | Timeframe used to build boxes and confirm breakouts. | M15 means a signal is evaluated only after an M15 candle closes. |
InpBreakoutBufferPips | Extra distance beyond the box edge. | Box high 3,950.00; 2 pips ($0.20) requires a close above 3,950.20 for a buy. |
InpMaxBarsAfterSession | How long a box remains valid after it closes. | 8 bars on M15 = two hours after the session ends. |
InpMaxBoxRangeATR | Rejects boxes that are too wide relative to ATR. | ATR 2.00 and max 6.0 rejects a box wider than 12.00 gold dollars. |
InpUsePivotBias | Requires buys above the D1 pivot and sells below it. | Prevents a buy breakout while price is still below the previous-day pivot. |
InpRiskPercent | Risk on the initial position. | $10,000 × 0.25% = $25 initial risk in LOW_DD. |
InpMaxBasketRiskPercent | Maximum total risk of the grid basket at the shared SL. | $10,000 × 0.75% = $75 maximum LOW_DD basket risk. |
InpGridStepATR | Adverse move required before another grid entry. | ATR 2.00 × 0.75 = $1.50 spacing, subject to the 10-pip minimum. |
InpMaxSpreadPips | Blocks entries when the broker spread is too wide. | LOW_DD blocks entries above 2.5 gold pips ($0.25). |
InpMaxDailyLossPercent | Equity 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.
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
MQL5\Experts..set files to MQL5\Presets.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.
Choose the next useful step
Most visitors arrive with one question: build, test, price, or trust. These shortcuts keep the path practical.
Go deeper before you build, download or automate
Hand-picked engineering articles, indicator breakdowns and trading-system tools so visitors keep exploring instead of leaving after one page.
Pine Script to MT4/MT5 Conversion Planner
Analyze Pine strategies, repainting risk, TradingView alert bridges, MTF synchronization and the correct MQL4/MQL5 build path before paying for conversion.
Open planner
3-in-1 MT5 Indicator Bundle
12H Bias Engine, Smart Money Institutional Flow Dashboard and D1/H1 pending-signal logic with MQ5 + EX5 source included via Etsy.
MT5 Bank Orders Institutional Flow Dashboard
Supply/demand zones, BOS/CHoCH, liquidity levels, FVG, equal highs/lows and confirmed trade-plan logic explained with EX5 download.
MT5 Asia London NY Liquidity Engine
Asia range, London raid and New York continuation/reversal planning with internal session backtest stats and entry/SL/TP dashboard.
Interactive Brokers RSI Pair Trader
Tkinter desktop trading workflow, TWS API connection handling, RSI pair logic, risk controls and custom IBKR development positioning.
XAUUSD M30 CSV Data For Backtesting
Use clean MT5 historical data for Python backtests, strategy validation, spread checks and realistic gold EA research workflows.