Bollard Gold Squeeze EA
- Experts
- Versione: 1.1
- Attivazioni: 5
Bollard Gold Squeeze is an original Expert Advisor for gold (XAUUSD) that trades the move out of a volatility squeeze. When the market goes quiet and the Bollinger bands pinch together, it draws a box around the recent bars. It then arms only one breakout side, the side that both momentum and the long-term trend agree on, and enters when price leaves the box. Every order is sent with a stop-loss. It holds one position at a time.
No grid, no martingale, no averaging, no pending orders, no partial closes, no DLL, no web requests, no hidden behaviour.
How it trades
- Squeeze detection (closed bars only). The signal timeframe defaults to H1; the chart timeframe does not matter. The Bollinger(20, 2.0) width is ranked against the previous 120 bars. A width in the lowest 20% counts as a squeeze. An optional second mode treats Bollinger bands inside a 1.5 ATR Keltner channel as the squeeze.
- Compression box. The high and low of the last 10 closed bars. If the box is wider than 3.0 ATR, the setup is skipped because the market is not truly compressed.
- One side only. The long side is armed only if a 20-bar linear-regression momentum oscillator is rising and the close is above the 200 EMA. The short side is armed only if both point down. If they disagree, nothing is armed.
- Entry. The armed side stays valid for 4 bars. A market order is sent when price crosses the box edge. No pending orders are left on the account.
- Stop. 1.0× ATR(14, Wilder) from the entry price, sent with the order.
- Exit. No fixed target by default. The trade is closed after 24 signal bars unless the stop is hit first. An optional R-multiple target and an optional breakeven move are included as inputs. Both are off by default because they lowered results in the tuning window.
Risk controls
- Fixed-fraction size. 1% of equity at the stop.
- Minimum-lot cap. If the broker's minimum lot is larger than the calculated size, it is used only when its stop risk is at most 5% of equity. Otherwise the trade is skipped and the reason is written to the log.
- Daily loss limit. 3% from the start of the server day. No new entries for the rest of that day.
- Equity guard. If equity falls 20% below its peak, new entries are paused for 5 days.
- Spread filter. The spread must be at most 0.15× ATR. An optional cap in points is also available.
- Order checks. OrderCheck, OrderCalcMargin, free-margin and margin-level limits, volume limits, trade mode, stops level and freeze level are checked before every order, modify and close. Works on hedging and netting accounts. On netting it does not trade if another EA or a manual position or order is on the symbol.
Tested results (honest)
Test conditions. Every tick based on real ticks, JustMarkets-Demo2 symbol XAUUSD.m, H1, leverage 1:100, v1.00 defaults. Period 16 November 2025 to 16 November 2026 (broker data ends 13 November 2026). 81,113,443 ticks, history quality 100% real ticks. Compiled with 0 errors and 0 warnings. No run produced trade errors or a stop-out.
USD 10,000:
- Net profit +11,182.58, profit factor 2.80, recovery factor 6.35.
- Equity drawdown maximal 1,761.53 (8.37%). Balance drawdown 1,154.21 (5.61%).
- 65 trades, 35.38% winners. Average win +756.53, average loss -148.04. Largest win +1,886.12, largest loss -407.60. Maximum consecutive losses: 6 (-1,154.21).
- Most trades lose small and a few winners run. Expect long losing streaks.
- A netting-account run gave the same result.
Tuning vs held-out months. Settings were chosen on 16 November 2025 to 16 July 2026 only. Eleven variants were compared on real ticks with USD 10,000: a 1R breakeven (the original design, +4,794.05, PF 2.52), tighter squeeze thresholds, a 6-bar box, the Keltner mode, momentum only without the EMA filter (PF 1.94, more drawdown), a wider 1.5 ATR stop, a fixed 3R target (PF 1.79) and two combinations. Breakeven off was the best balance: +8,965.99, PF 3.00, equity drawdown 9.55%, 51 trades. Those settings were then locked.
- Tuning window (deals closed before 16 July 2026): +8,965.99, PF 3.00, 51 trades.
- Held-out months (deals closed from 16 July 2026, never used for tuning): +2,216.59, PF 2.29, 14 trades. This stayed positive, but 14 trades is a small sample.
Smaller deposits (same year, real ticks):
- USD 5,000: +4,724.01, PF 2.69, equity drawdown 7.99%, 65 trades.
- USD 1,000: +1,407.28, PF 2.67, equity drawdown 12.36%, 64 trades. 32 of them used the broker's minimum lot, so the risk per trade was higher than 1%. There were 4 daily-loss halts.
Validator-style checks (netting, 1-minute OHLC): XAUUSD on a D1 chart, USD 1,000: +1,115.87, PF 2.39, 64 trades. EURUSD H1, USD 1,000: -56.53, PF 0.87. EURUSD H1, USD 100: -16.53, PF 0.74. XAUUSD D1, USD 100: 0 trades, because the minimum lot would have risked more than 5% and each skip was logged. The EA is designed for gold. The EURUSD runs are technical checks only and lost money.
Important to know
- Gold trended strongly during much of the test year, which suits breakout systems. Results in a long sideways market may be weaker.
- Positions can stay open over the weekend. The largest loss (-407.60, about 4% of the starting balance) came from a weekend gap through the stop. Use FridayCutoffHour if you want to avoid new trades late on Friday.
- All results are from one broker's demo data. Spreads, commissions and slippage on your account will differ.
- Recommended deposit: USD 5,000 or more on XAUUSD with 0.01 lot steps. The minimum is USD 1,000. With less, many trades fall back to the minimum lot or are skipped.
Inputs
- Squeeze detection: SignalTF (H1), SqueezeMode (0 = width percentile, 1 = Bollinger inside Keltner), BandPeriod 20, BandDeviation 2.0, WidthLookback 120, WidthPercentile 0.20, KeltnerATR 1.5, AtrPeriod 14.
- Box and direction: BoxBars 10, MaxBoxATR 3.0, BreakBufferATR 0.0, ValidBars 4, UseMomentum true, MomentumPeriod 20, UseTrendFilter true, TrendEMA 200.
- Exits: StopATR 1.0, TakeProfitR 0 (off), BreakevenR 0 (off), HoldBars 24.
- Filters: EnableLong, EnableShort, SessionStartHour / SessionEndHour (equal = 24h), FridayCutoffHour (0 = off).
- Risk and protection: RiskPercent 1.0, MaxMinLotRiskPct 5.0, DailyLossPercent 3.0, EquityDDPercent 20.0, PauseDays 5, MaxSpreadATR 0.15, MaxSpreadPoints 0, MaxFreeMarginUsePercent 30, MinMarginLevel 300, SlippagePoints 30, MagicNumber 26111901, ShowPanel true.
An on-chart panel shows the squeeze state, width percentile, momentum, box, trend side, the armed level, the open position and the guard status.
Past results from historical testing are not a promise of future returns. Trading gold with leverage carries a high risk of loss. Test on a demo account first.
