Bollinger Squeeze Breakout EA
- Uzmanlar
-
Abdullah Al-murad
I build Expert Advisors and utilities for MetaTrader 5, mainly for gold (XAUUSD), forex and crypto.
How I build my products:
- Every robot sends each order with a stop loss. No martingale, no grid averaging, no hidden rules.
- Signals are calculated on closed bars, so they are not redrawn. - Sürüm: 1.0
- Etkinleştirmeler: 5
Bollinger Squeeze Breakout EA is a volatility breakout robot for major forex pairs on the H1 chart. Quiet markets are followed by active ones: the EA waits for the Bollinger Bands to tighten and trades the move that follows.
HOW IT WORKS
- Squeeze: the width of the Bollinger Bands (20, 2.0) is in the lowest 10% of its last 120 bars.
- Entry: within 6 bars of a squeeze, an H1 candle closes above the upper band (buy) or below the lower band (sell).
- Stop loss: 2 x ATR(14). Take profit: 3 x the stop distance.
- Time exit after 48 bars. Optional ATR trailing stop (off by default).
The EA reads H1 data itself, so it can be attached to a chart of any timeframe. Attach one copy to each pair you want to trade.
INPUT PARAMETERS
Signal Working timeframe H1 Bollinger period / deviations 20 / 2.0 Squeeze compared with the last N bars 120 Squeeze = lowest part of that range 0.10 Squeeze within this many bars 6 Exit Stop loss, x ATR(14) 2.0 Take profit = stop distance x 3.0 Trailing stop, x ATR(14) 0.0 (off) Close after this many bars 48
HISTORICAL SIMULATION (6 major pairs, H1, 2021-02 to 2026-12, fixed 0.01 lot)
The default settings were chosen on the first two thirds of the history only. The last third (from 2024-12) was not used for tuning. Spread is included, swap is not.
EURUSD built: 468 trades, +16 USD | unseen: 197 trades, +54 USD GBPUSD built: 467 trades, -93 USD | unseen: 196 trades, +53 USD USDJPY built: 421 trades, +163 USD | unseen: 200 trades, +28 USD AUDUSD built: 379 trades, +4 USD | unseen: 200 trades, -25 USD USDCAD built: 462 trades, -160 USD | unseen: 230 trades, +13 USD EURJPY built: 383 trades, +12 USD | unseen: 200 trades, -3 USD TOTAL built: 2580 trades, -58 USD | unseen: 1223 trades, +119 USD
Honest reading: in dollars the first period was slightly negative and the unseen period positive; pairs differ a lot (USDJPY and EURUSD positive, USDCAD and GBPUSD negative overall). About 30% of trades win, with larger winners than losers, so long losing streaks are normal. This simulation does not prove an edge.
RISK MANAGEMENT (same on every order)
- A stop loss and a take profit are attached to every trade.
- Fixed lot (default 0.01) or risk as a % of equity per trade.
- Max loss at the stop: if the lot would lose more than the set % of equity at the stop, the stop (and the target, same ratio) is moved closer.
- Margin check: no trade if it needs more than half of the free margin.
- Volume is checked against the symbol's minimum, maximum, step and limit.
- Broker stop level and freeze level are respected when opening, trailing and closing.
- Works on hedging and netting accounts; one position per symbol, identified by its magic number.
- No martingale, no grid, no averaging. No DLL and no external connections.
Money management inputs Fixed lot 0.01 Risk per trade, % of equity 0.0 (0 = fixed lot) Max loss at the stop, % of equity 5.0 Max spread in points 0 (0 = no limit) Magic number 26120605
IMPORTANT
This Expert Advisor does not guarantee profit. The figures above come from the developer's own bar-by-bar simulation on historical prices, not from live trading; past results do not guarantee future results. Trading leveraged products involves a high risk of loss. Test on a demo account first and use only money you can afford to lose.
