EZQUANTGold CFD Quant Strategy Library
Grid / hedgeHead/tail hedge failsafeMT4 + MT5Aggressive

黄金罗盘 Gold Compass

Gold grid scaling × head/tail hedge failsafe

Instrument: XAUUSD (gold)
Timeframe: H1 (internal logic runs on an hourly rhythm; other timeframes can attach too)
Suggested minimum capital: $5,000+
Suggested leverage: 1:100 or higher

Historical performance

Instrument XAUUSDStarting capital $100,000Starting lot size From 0.05
Cumulative net profit+$73,378YTD 2026
Cumulative return+73.4%Net profit ÷ starting capital
Max equity drawdown23.4%Highest across periods
Profit factor1.77Gross profit ÷ gross loss · 3,311 trades
Return vs. max drawdown by periodReturnMax equity drawdown
YTD 2026
+73.4%DD 23.4%
PeriodNet profitReturnMax equity drawdownProfit factorTrades
YTD 2026+$73,378+73.4%23.4%1.773,311

The figures above are historical performance statistics, not a live trading record; past performance does not indicate future results. Return = net profit ÷ starting capital, not compounded, and excludes deposits/withdrawals. Max equity drawdown is the largest decline in account equity (including open floating loss), not just closed-trade drawdown. Ask us for a demo account to see live results.

Overview

Gold Compass is a grid-scaling EA built around an hourly rhythm, using a four-layer architecture: "dual-direction independent grids × auto-scaling × average-price trailing take-profit × head/tail hedge failsafe." The system opens a first order when a move starts, scales in automatically by multiplier as the market extends, and locks in profit through two settlement mechanisms — a dollar-profit exit and average-price trailing.

Once layer count reaches a set threshold, the system automatically switches on head/tail hedge unwinding, pre-capping potential risk — actively converting martingale-style exposure into a controlled, small-loss exit.

Key features

Independent dual-direction grid

Longs and shorts each place, take-profit and risk-control independently, so they don't interfere with each other during a one-directional move, and can capture both trending and ranging conditions.

Flexible scaling and step control

Offers both a "multiplier" and a "fixed increment" scaling mode: multiplier expansion scales faster, fixed increment gives a steadier rhythm — mix them to match your risk appetite.

Direct dollar-profit exit

Supports three independent dollar-profit thresholds — long, short, and total — hitting one closes that basket immediately, avoiding profit giveback.

Average-price trailing take-profit

Once a position hits its activation count, it automatically starts trailing from that side's average price, stepping dynamically to lock in accumulated floating gains.

Head/tail hedge failsafe

Once layers exceed a set threshold, the system actively hedges the first and last order; once the combined result hits a target dollar amount, it exits the whole batch — pre-capping potential risk.

Flexible lot sizing

Can use a fixed base lot, or enable "auto lot sizing" that scales dynamically with account equity, with hard caps on max lot per trade and max layers per side.

Entry logic

The first order is built on a dual-direction pending-order concept, triggering automatically once a move clearly develops; subsequent scaling adds layers against the position at "spacing + spacing multiplier," forming a self-extending grid. Longs and shorts are fully symmetric at the entry layer — there's no directional bias built in.

Spread and slippage filter

Checks whether current spread and slippage are within set limits before entering, avoiding passive fills during extreme quotes.

Minimum-distance validation

Every pending order's distance is automatically checked against the broker's minimum valid distance; anything too tight is auto-corrected and logged, so the order can be placed successfully.

Position management

As the market extends, the system scales by "spacing × spacing multiplier"; the next lot size is calculated from a mix of "lot multiplier + lot increment," bounded by both a "max lot per trade" and a "max layers per side" hard cap. Once layer count hits the head/tail hedge activation threshold, the system automatically switches into failsafe mode.

ItemControl method
Scaling triggerAdds a layer once the market moves against the position by the "layer spacing," with spacing widening by the "spacing multiplier" each layer.
Layer lot sizeCalculated from "lot multiplier" and "lot increment," which can be used alone or combined.
Lot capPer-trade lot never exceeds the "max lot per trade" hard cap.
Layer capLayers on one side never exceed the "max layers per side" hard cap; exceeding the threshold triggers the head/tail hedge failsafe.

Exit and risk-control priority

The system runs multiple take-profit and protection layers, checked top-down each cycle — any layer that triggers fires its own action, so mechanisms don't interfere with each other.

OrderMechanismTrigger (plain language)Action
1Unified take-profit pointsA fixed take-profit level set per trade, executed server-side.That position closes when the target hits.
2Dollar-profit exitLong, short or total floating profit reaches a set dollar threshold.Closes that side (or everything), locking in profit.
3Average-price trailingOnce position count hits the activation threshold, trailing starts from the average price; triggers when price pulls back from its high by the retracement amount.Closes that side's whole basket, realizing locked-in floating gains.
4Head/tail hedge unwindLayers exceed the activation threshold, arming the failsafe; combined result of first/last orders reaches the target dollar amount.Hedge-closes the head/tail orders and exits the whole batch, pre-capping potential risk.
5Manual close-allUser presses "close all" on the control panel.Immediately ends all positions.

Risk tier and capital guidance

This strategy is a grid-scaling type with no hard stop-loss point; risk is instead managed by three mechanisms working together — "dollar-profit exit," "average-price trailing," and "head/tail hedge failsafe" — rated "Aggressive." Extreme one-directional moves can still produce significant floating losses; the head/tail hedge mechanism reduces but does not fully eliminate this risk — size capital to your own risk tolerance.

Risk tierSuggested min. capitalSuggested leverageExpected max drawdown range
Aggressive (r3)$100,000+1:100 or higherDepends on parameters

Who it's for

System requirements

ItemDescription
PlatformMetaTrader 4 (MT4) / MetaTrader 5 (MT5).
InstrumentPrimarily gold CFD (XAUUSD); can also be applied to major forex pairs.
EnvironmentUninterrupted 24-hour connectivity; VPS recommended.
Chart timeframeH1 suggested (internal logic runs on an hourly rhythm); other timeframes can run too.
Capital sizingEstimate potential exposure from "lot multiplier × max layers per side"; suggest an account balance at least 3x the estimated margin.

Usage notes

This EA is a grid-type strategy with no hard stop-loss point — extreme one-directional moves can still produce significant drawdown; the head/tail hedge mechanism reduces but does not fully eliminate this risk.
For a first run, we suggest starting with the smallest lot size and a conservative multiplier, and observing on demo or a small live account for 1–2 weeks before scaling up.

Want to see it running live?

Message us on Telegram, or WeChat ezmoney50 and mention "Gold Compass" — we'll set you up with a read-only MT4/MT5 demo account and walk you through licensing. Partners get their own pricing.

Chat on Telegram
← Back to strategy library
Ask our AI on Telegram