Hermes Gold Scalping
- Experts
- Version: 1.0
- Activations: 10
HERMES GOLD SCALPER (MT5)
Swift structure-breakout trading for XAUUSD, flat through every rollover and weekend
Hermes Gold Scalper is a fully automated Expert Advisor for gold (XAUUSD) on MetaTrader 5. It is named after the swift messenger of the gods and patron of trade. It reads market structure on the H1 chart, finds confirmed swing highs and swing lows, and places pending stop orders just inside those levels. When price breaks out of the structure the order is filled, and the trade is managed with a hard stop loss, a hard take profit and a trailing stop.
What sets Hermes apart: it keeps a flat book through the most dangerous hours for gold. Every night around the daily rollover, and over every weekend, Hermes removes its pending orders and closes any open trade. Its positions are never exposed to rollover spreads or weekend gaps.
No martingale. No grid averaging. Every order carries a fixed stop loss and take profit from the moment it is placed.
HOW IT WORKS
1. Pivot detection (H1)
A swing high is a candle high that no candle to its left (within a set number of bars) exceeds and no candle to its right breaks. A swing low is the mirror image. A pivot counts as "confirmed" only once the required number of right-hand bars has closed, so the EA never trades a level that may still change.
2. Breakout entries
For every confirmed swing high the EA places a Buy Stop slightly below it; for every swing low, a Sell Stop slightly above it. The small inset gets the order filled as price pushes into the level, instead of waiting for a full break.
3. Four independent engines
The EA runs four separate engines, each with its own magic number, lot settings and trailing distance. You can run all four together or any single one.
Hermes A: Sticky pivots
H1 pivots of 10 bars left / 7 bars right. Entry 1.80 inside the pivot. Stop loss 5.00, take profit 15.00 (price units, USD per ounce). Keeps up to 6 pending orders alive at once; an unfilled order expires after 190 hours. After a losing or break-even exit, the same level can be re-armed once at the next H1 bar (up to 3 fills per level).
Hermes B: Latest-swing tracker
Asymmetric pivots: 25/2 bars for highs, 10/3 for lows. Entry 1.50 (buy) / 1.90 (sell) inside. Stop loss 5.00, take profit 25.00. Holds one pending order per side that always follows the most recent swing. Ignores a new swing that sits too close to price (under 1.20) or a level older than 84 hours.
Hermes C: Level book
H1 pivots of 7/5 bars. Entry 2.20 inside. Stop loss 10.00, take profit 25.00. Keeps a "book" of every confirmed level from the last 10 days and, every 15 minutes, works the eligible level nearest to price. A level can be traded up to 4 times. It is re-armed only after a near break-even exit (between -1.20 and +0.35), and only on the next M15 bar. Old levels sitting right next to price are skipped in favour of fresher structure.
Hermes D: Major structure
Wide H1 pivots of 27/20 bars, i.e. only significant swing points. Entry 2.20 (buy) / 1.25 (sell) inside. Stop loss 8.00, take profit 17.00. Level book of 14 days, up to 2 fills per level, same re-arm rule as C.
4. Flat book over the rollover and the weekend
- Nightly window (default 22:50 to 01:15 server time): all pending orders are removed, any open position is closed, and no new orders are placed.
- Weekend window (Friday 22:00 to Monday 01:15 server time): the same rules apply.
- Engine A's pending levels are remembered during the window and restored afterwards with their original expiry, so no structure is lost.
- Re-arms that fall due inside a window wait until it ends.
- Every forced action is checked and logged; a request that fails is retried at most once per second.
- The window times are inputs, so you can match them to your broker's rollover.
5. Trade management
Once a trade is 0.15 in profit, a trailing stop starts following the best price at a fixed distance (A 1.10, B 1.20, C 1.00, D 0.50). The trailing stop is held internally on every tick. It is also sent to the broker as the real stop loss whenever the broker's stop level allows it, so the protection survives a lost connection.
6. Protection filters
- Maximum spread filter (default 120 points): no new orders while spreads are wide.
- Margin check: a pending order is placed only if the account could fund it together with every other pending order of the EA. Pending orders the account can no longer fund are removed before they trigger.
- Trades only inside your broker's trading session, so no orders are sent while the market is closed.
- Before placing any order on a live account, the EA checks that the terminal is connected, trading is allowed and the last tick is fresh (default 15 seconds). While disconnected it sends nothing.
- Restart recovery: after a restart, reconnect or VPS migration, the EA rebuilds its state from the last 30 days of trade history and restores trailing stops, so it does not double-enter levels it has already traded.
MONEY MANAGEMENT
Each engine has its own lot mode:
- Fixed lot (default 0.01)
- Risk % of balance per trade, calculated from that engine's stop-loss distance
- Lot per balance: the fixed lot scaled up or down with your balance
ON-CHART PANEL
An Aegean-blue dashboard with Hermes' winged helmet shows symbol, spread, open positions, pending orders, active engines and connection state. Choose Big, Small or Off. Every order, fill, exit and skipped signal can also be written to a CSV trace file (Terminal\Common\Files), so you can audit exactly what the EA did.
REQUIREMENTS AND RECOMMENDATIONS
- Symbol: XAUUSD (any broker suffix). Attach to one chart only. The chart's timeframe does not matter; the EA reads H1 and M15 itself.
- Account type: hedging (the engines can hold buy and sell positions at the same time).
- Server time: the default windows are set for brokers on GMT+2 / GMT+3 (EU daylight saving). Adjust the window inputs if your broker differs.
- Recommended start: from 1,000 USD with the default 0.01 lots on each engine.
- Use a VPS close to your broker and a low-latency ECN account. The EA enters with stop orders and trails tightly, so execution quality (latency and slippage) has a direct effect on results.
- Hermes has no news filter. Consider pausing it around major US releases (FOMC, NFP, CPI).
- Holiday early closes and connection losses are not covered by the flat windows. If the market closes early, a position may remain open until the next session.
MAIN INPUTS
- Entry mode: all engines or A / B / C / D only
- Lot mode, fixed lot, risk % and balance reference for each engine
- Magic numbers for each engine (default 2301-2304)
- Pivot lengths, level-book age and fills per level
- Trailing activation and distance for each engine
- Flat window start and end (hour and minute) and the Friday cut-off hour
- Maximum spread, slippage (deviation)
- Live safety checks, dashboard size, CSV trace on/off
RISK WARNING
Trading gold on margin carries a high level of risk and may not be suitable for all investors. Past results, including backtests, do not guarantee future performance. Test the EA on a demo account with your own broker before trading real money, and only trade money you can afford to lose.
