Strategic Gold Hedge
- Эксперты
- Версия: 2.1
- Активации: 20
Strategic Gold Hedge (SGH) is a fully automated Expert Advisor built around a structural price-action engine that reads the market's own extremes — where price has repeatedly tested a level and failed to extend beyond it — and waits for a genuine break of that structure before ever committing capital. Rather than reacting to a single indicator crossing a line, SGH continuously tracks the shape of recent price action, identifies the specific symmetry that marks a exhausted move, and only acts once the market itself confirms the rejection with a real break. Every entry is then handed off to a full risk-management and execution layer, with live performance reported directly on an on-chart dashboard.
SGH works on any liquid symbol and any timeframe you choose. Every trading rule, filter, and risk parameter is exposed as an input — nothing about position sizing, stop placement, or trade pacing is hardcoded.
What it does
- Continuously scans recent price structure for a specific two-point symmetry that marks where a move has run out of steam, then waits for price to actually break that structure before treating it as valid — filtering out the early false starts that catch most breakout systems off guard.
- Applies a configurable context filter that discards a setup if a larger, more dominant extreme already exists nearby, so the EA isn't trading minor structure inside a bigger, still-active move.
- Manages every trade with broker-aware guards: valid stop distances, live margin verification, and the symbol's aggregate volume limit are all checked before an order is ever sent, and automatically re-checked and adapted if the broker still pushes back.
- Runs a directional-sequencing control that keeps the EA from stacking repeated trades in the same direction back-to-back, and a minimum-spacing rule that keeps opposing entries from clustering too close together.
- Runs a broker-safe trailing stop that only moves the stop when the broker will actually accept the modification — eliminating the flood of rejected-modification errors that plague naive trailing-stop implementations.
- Displays everything that matters — live setup state, trade sequencing status, and full performance statistics — directly on the chart, in both live trading and Strategy Tester visual mode.
Key features
Structural Break Engine The core signal is built entirely from price structure, not a lagging indicator overlay — it identifies a specific symmetric pattern in recent highs or lows, requires it to form within a bounded window so stale structure can't trigger late, and only converts it into a live order once price closes beyond the level that would invalidate it. The exact geometry is proprietary; what you get is a signal that only fires on a confirmed structural break, not a guess.
Context & Sequencing Filters Beyond the core signal, SGH layers on independent filters that most breakout EAs skip entirely: a recent-extreme check that throws out setups sitting inside a bigger, still-relevant move, a directional-sequencing lock that enforces trade alternation rather than letting the EA pile into one side of the market, and a minimum-distance rule between opposing entries. Each filter can be tuned or switched off independently.
Full Risk Management Suite
- Configurable lot sizing with a hard ceiling, always normalized to your broker's actual volume step and limits — never rejected for an invalid lot size.
- Fixed stop-loss with a choice of fixed take-profit or a trailing stop that only ever tightens risk, never loosens it.
- Pre-trade guards that check broker stop-distance rules, free margin (accounting for exposure already tied up by other resting orders, not just the new one in isolation), and market-session hours before every single entry — with automatic lot-shrinking and price re-validation if the broker still rejects the first attempt.
- A pending-order expiry system that retires unfilled setups automatically after a configurable window, so stale orders never linger waiting for a move that already passed.
Broker-Safe Trailing Stop Activates once a trade reaches a defined profit threshold and steps the stop forward only when the move clears the broker's own minimum stop/freeze distance and represents a real improvement — avoiding the constant failed-modification noise seen in many off-the-shelf EAs, especially right after a stop order fills.
Live Trade-Stats Dashboard An on-chart panel shows total trades, wins, losses, win rate, profit factor, largest win/loss, net profit, running balance/equity, and the current trade-sequencing state — all updating in real time.
Verbose Diagnostics Mode An optional logging switch prints the exact reason any setup or order was skipped — filter, margin, stops, spread, market hours — making it straightforward to understand EA behavior during testing and optimization.
Recommended setup
| Symbols | Gold (XAUUSD) primary focus; works on any liquid symbol |
| Timeframes | Fully configurable — M15 recommended as a starting point |
| Account type | ECN / Raw-spread account recommended for tighter execution |
| Minimum deposit | From 500 USD at minimum lot size, scale with your risk settings |
| Positions | Single-direction sequencing by default, fully configurable |
| VPS | Recommended for uninterrupted 24/5 operation |
Getting started
- Attach SGH to your chosen chart and timeframe.
- Review the Order Management, Trailing Stop, and Direction Alternation input groups and set them to match your risk tolerance.
- Enable Algo Trading in MetaTrader 5.
- SGH will begin reading market structure and managing trades automatically — the dashboard keeps you informed the whole time.
Notes
Trading frequency depends on how the active filters interact with current market conditions — a more selective configuration will naturally trade less often, and that's by design rather than a fault. As with any automated strategy, please backtest and forward-test on a demo account first, and size positions according to your own risk tolerance. Past performance in the Strategy Tester does not guarantee future results.
