Open a gold trade by hand and CandleGuard instantly puts the stop-loss beyond the last closed candle and a take-profit at your multiple, then trails the rest. It scans 18 candlestick patterns on M1, M5 and M15, and an optional AUTO mode trades a small, tested pattern basket.
Illustration of the CandleGuard panel
Three tools in one EA. Use the guard and scanner while you trade by hand, and switch AUTO on only when you are ready.
Every manual trade gets a stop beyond the last closed M1 or M5 candle (plus an optional buffer) the moment it opens, from the terminal, your phone, one-click trading or the panel.
TP = stop distance × your multiplier. If price is already beyond the candle when you open, the trade is skipped with an alert instead of getting a wrong stop.
At TP CandleGuard closes part of the trade (50% by default), moves the stop to break-even and trails the rest by distance or in steps. TRAIL toggles from the panel.
Every closed M1, M5 and M15 candle is checked for 18 classic patterns. They are labelled on the chart, listed in a live feed and counted on the panel, with optional pop-up alerts.
AUTO (off by default) trades only the 4 patterns that held up in our study, with a $10 minimum stop, 2× take-profit and a delayed trail, using its own magic number.
No entries while the spread is above $0.60, AUTO stops for the day after a 3% equity drop, and it runs only on gold symbols and hedging accounts. At most 3 trades, 12 hours each.
BUY and SELL at your panel lot size, TRAIL and AUTO switches, CLOSE ALL, plus equity, today's P/L (manual and auto separately), spread and the next stop levels.
Each basket pattern that is not traded is written to the journal with the reason (AUTO off, stop too small, spread, Algo Trading off), so you always know why.
Your GoldBot licence key belongs to your MT5 account and runs every GoldBot EA, so CandleGuard costs nothing extra.
Gold borders mark the patterns in the AUTO basket: M15 Bearish Marubozu, M15 Tweezer Top, M15 Bullish Pin Bar and M5 Tweezer Top.
| AUTO basket · per 0.01 lot | August | September | October (unseen) |
|---|---|---|---|
| Result | +$65 | +$265 | +$128 |
| 145 trades · 50% wins · largest drawdown $44. Past and simulated results do not guarantee future results. Run AUTO on demo first and start with the minimum lot. | |||
The zip contains the EA, two presets (CandleGuard-Manual-Helper: guard + scanner, AUTO off; CandleGuard-Auto-Basket: AUTO on at start, 0.01 lot), a README and the changelog.
MT5 → File → Open Data Folder. Copy MQL5\Experts\GoldBot-CandleGuard.ex5 to MQL5\Experts and the .set files to MQL5\Presets. Navigator → Refresh.
Drag GoldBot CandleGuard onto an XAUUSD chart (any timeframe), tick Allow Algo Trading and make sure the toolbar button is green.
Inputs → Load a preset, paste your GoldBot key into LicenseKey. When a key expires, AUTO switches off and open trades stay protected.
Licences belong to your MT5 account, not to a product. Pay for one plan and the same key runs every GoldBot EA on that account, even the free demo key.
5 days. Try every GoldBot EA free. One per person, any broker, key issued instantly.
7 days. A longer test for a small fee. Your key is issued the moment the payment confirms.
30 days. Full access on any broker, live or demo. Renewing adds 30 days to your expiry.
Opened your account through our partner broker? Your licence is free, renewed from My Licence.
Not unless you switch AUTO on. With AUTO off (the default) it only manages the trades you open: by hand in MetaTrader, from the mobile app, with one-click trading or with its own BUY and SELL buttons. AUTO trades use their own magic number (24140) and never touch your manual trades.
Beyond the last closed candle of the timeframe you choose (M1 or M5): below its low for a BUY, above its high for a SELL, plus an optional buffer. The take-profit is the stop distance multiplied by your TP multiplier. If price is already beyond that candle when you open, CandleGuard skips the trade and tells you why.
No. CandleGuard uses the same GoldBot licence key as GoldBot Air. Your key belongs to your MT5 account, so if you already have a key for that account, it runs CandleGuard too, including the free demo key.
Yes. The MetaTrader Strategy Tester runs CandleGuard without a key, and the free 5-day demo key lets you run it on your account. Always try AUTO on a demo account first.
In our tick-data study (Aug 1 to Oct 26 2026, per 0.01 lot) it made +$65 in August, +$265 in September and +$128 in October, with 145 trades, 50% wins and a $44 largest drawdown. That is a short sample, single patterns on their own lost money in the same study, and simulated results do not guarantee future results.
MetaTrader 5 on Windows or a Windows VPS, built for XAUUSD. AUTO only runs on gold symbols and hedging accounts.
Trading leveraged products such as gold carries a high level of risk and can result in the loss of your entire capital. Stops and trailing reduce some risks but cannot prevent losses, and stops can slip in fast markets.