Bullion Breaker
- Experts
- Versione: 1.0
- Attivazioni: 5
Bullion Breaker is a fully automated breakout Expert Advisor for gold (XAUUSD). It places pending stop orders at unbroken 4-hour swing highs and lows, enters only when price breaks a level, and protects every trade with an ATR-capped stop loss and a tight trailing stop.
How it works
Gold respects its recent 4-hour highs and lows. When one of them breaks, price often runs for a few dollars before it pauses. Bullion Breaker trades exactly that first run.
- Finds the levels. Every 4 hours it scans the last 72 four-hour candles for swing highs and swing lows that price has not broken since they formed.
- Places pending orders. A Buy Stop sits on each unbroken swing high and a Sell Stop on each unbroken swing low, up to 6 levels per side. Nothing is opened at market.
- Enters on the break. A trade opens only when price actually trades through a level. Each level is traded once.
- Protects the trade. The stop loss is the smaller of $4.00 and 1.5 x ATR(14) on M5, re-anchored to the real fill price, with a fixed $15.00 take profit.
- Locks in profit fast. After $1.30 of profit a trailing stop follows price $0.25 behind, so most trades close in seconds to minutes with the gain secured.
Levels are refreshed once a day after the market opens, at every new 4-hour candle, and after each closed trade.
Key features
- No grid, no martingale, no averaging. One position per level, every trade has a stop loss and a take profit from the moment it is placed.
- Broker-independent levels. 4-hour candles are rebuilt on the New York close clock, so the EA sees the same levels on any broker time zone.
- Slippage protection. After a fill, the stop loss and take profit are moved to the real fill price, so a slipped entry never risks more than intended.
- Virtual trailing guard. If the broker rejects a trailing stop update in a fast spike, the EA closes the trade at market instead of giving the profit back.
- News filter. Pending orders are removed 10 minutes before and restored 30 minutes after high-impact USD news, using the built-in MT5 economic calendar.
- Flexible money management. Fixed lot, lot per balance step, or a fixed % of balance risked per trade.
- Optional protections. Weekend filter, daily loss limit, maximum spread and minimum distance from price.
- Works on any gold symbol. XAUUSD, GOLD, XAUUSDc, XAUUSD.* and similar, on 2-digit and 3-digit quotes, standard and cent accounts.
Recommended setup
| Item | Recommendation |
|---|---|
| Symbol | Gold: XAUUSD, GOLD, XAUUSDm, XAUUSD.f or your broker's gold symbol |
| Chart timeframe | M5 (attach to one chart only) |
| Quotes | 2-digit gold quotes preferred (e.g. 3650.25). 3-digit quotes are scaled automatically |
| Spread | Low, ideally under 0.30 (30 points). Orders are not placed above 0.80 |
| Execution | Fast, low-slippage broker; ECN/raw accounts work best |
| Account | Standard or cent, hedging account. From $100; $500 or more recommended |
| Leverage | 1:500 or higher at the default risk (several orders can fill in the same move) |
| Running | 24/5 on a VPS close to your broker's server |
The strategy depends on fast fills when a level breaks. A broker that fills stop orders seconds late will give noticeably worse results than the Strategy Tester shows.
Broker time zone
Bullion Breaker runs on the New York close clock (GMT+2 in winter, GMT+3 during US daylight saving), the clock most MT5 brokers already use. Its 4-hour candles, daily refresh, weekend cut-off and news times are all measured on that clock, so it needs to know your broker's offset.
Live and demo trading: leave Server GMT offset at 99. The EA reads the server time and GMT and works the offset out by itself.
Strategy Tester: the tester cannot report real GMT, so set the offset by hand if your broker is not GMT+2/+3:
- Find your broker's server time in Market Watch and compare it with GMT.
- Enter the winter offset in Server GMT offset (GMT+2/+3 brokers: 2; GMT+0: 0; GMT+3 all year: 3).
- Set Server daylight saving to the rule your broker follows: US (most brokers), European, or none.
With the right offset, the EA builds the same levels and trades at the same moments on every broker.
Inputs
Distances are in points of a 2-digit gold quote (100 points = $1.00). On 3-digit quotes they are converted automatically.
| Group | Input | Default | What it does |
|---|---|---|---|
| Money management | Lot mode | Per balance | Fixed lot, 0.01 lot (100 oz) per X balance, or % risk per trade |
| Money management | Fixed lot | 0.01 | Lot used in Fixed mode |
| Money management | Balance per 0.01 lot | 70 | Per-balance mode: 0.01 lot of 100 oz for every 70 of balance |
| Money management | Risk % per trade | 2.0 | Risk mode: % of balance lost if the stop loss is hit |
| Money management | Max orders | 12 | Pending orders + open positions |
| Trade | Stop loss cap | 400 ($4.00) | Largest stop loss allowed |
| Trade | ATR stop / period / multiplier / timeframe | On / 14 / 1.5 / M5 | Stop loss = smaller of the cap and ATR x multiplier |
| Trade | Take profit | 1500 ($15.00) | Fixed take profit |
| Trade | Trailing / start / distance | On / 130 / 25 | Trail $0.25 behind price after $1.30 profit |
| Trade | Re-anchor SL to fill | On | Stop loss and take profit measured from the real fill price |
| Trade | Virtual trailing / tolerance | On / 5 | Close at market if the broker rejects a trailing move |
| Trade | Auto-scale 3-digit gold | On | Converts points on 3-digit quotes |
| Levels | Level candle size | 4 hours | Candles aligned to the New York close |
| Levels | Swing strength / lookback | 1 / 72 | Candles each side of a swing / candles scanned |
| Levels | Max levels per side / spacing | 6 / 50 | Orders per side / minimum gap between levels |
| Levels | Level selection | Extreme first | Highest highs and lowest lows first, or nearest to price first |
| Levels | Broken by close / min distance / max spread | Off / 0 / 80 | Level filters and spread limit |
| Time zone | Server GMT offset / daylight saving | 99 (auto) / US | See Broker time zone above |
| Schedule | Refresh time | 01:05 | Daily refresh on the New York close clock |
| Schedule | Weekend filter / Friday cut-off | Off / 23:00 | Remove pending orders before the weekend |
| Protections | News filter / before / after | On / 10 / 30 min | Pause around high-impact news |
| Protections | News currency / extra news times | USD / empty | Calendar currency; extra times in New York time |
| Protections | Daily loss limit | 0 (off) | Pause for the day after losing this % of the day's starting balance |
| Identification | Magic number / comment | 7262026 / Bullion Breaker | Use a different magic number for each chart |
Money management and risk
The default (0.01 lot per 70 of balance) risks up to about 5.7% of the balance per trade when the stop loss is at its $4.00 cap. That is an aggressive setting.
- Most trades are small trailing wins; a full stop loss costs about the same as 3 to 5 wins. Losing streaks of 3 to 4 trades happen.
- For lower risk, switch Lot mode to Risk % and use 1 to 2% per trade, or raise Balance per 0.01 lot (140 halves the risk).
- The lot is recalculated from the balance after every closed trade, so it grows and shrinks with the account.
- Cent accounts work the same way: the lot is calculated from the symbol's contract size and tick value, not from a fixed lot table.
- Run one chart per account, or give each chart its own magic number.
Risk disclaimer
Trading gold on margin carries a high level of risk and is not suitable for every investor. Past results, backtests included, do not guarantee future results. Slippage, spreads and execution speed differ between brokers and can make live results worse than the Strategy Tester shows. Always test on a demo account first, trade only money you can afford to lose, and choose a risk level that fits your account.
