WinWin XAU Grid Trader
- エキスパート
- バージョン: 2.0
- アクティベーション: 5
Overview
WinWin XAU Grid Trader is a fully automated trading program (Expert Advisor) for MetaTrader 5, designed for XAUUSD (Gold) on the H1 timeframe. It combines a ranging-market grid, a hedging module and a trend-following module. The program detects the market state automatically: it trades grid rules inside a ranging market and activates hedging and trend handling when price leaves the range.
The program requires a Hedging account and does not support Netting accounts.
Strategy Structure
The program consists of the following modules:
- Range grid module. The program identifies a ranging market using a combination of ADX and RSI conditions and only places grid orders when the range state is confirmed. Grid spacing supports both fixed distances and an equity-linked mode: as account drawdown deepens, spacing is automatically widened to reduce position density, and new orders can be stopped entirely below a configured equity level.
- Hedging module. When price breaks away in one direction by a set distance, the program opens a counter-position sized as a ratio of the losing side. Hedge positions have their own stop loss and take profit. After a hedge closes in profit, excess profit can be used to partially reduce the losing side (the reduction module is gated by a profit-pool threshold and an equity condition).
- Hedge filter module. In strong trends the program blocks hedge entries with a low historical success rate. An equity guard exemption is included: when account equity falls below a set percentage of balance, hedges are allowed even if the filter conditions are met, prioritizing account protection.
- Loss-streak cooldown module. After a configurable number of consecutive hedge stop-outs within the same trend segment, new automatic hedges are paused until the market returns to a range or a hedge closes in profit.
- Hedge drawdown take-profit. Once a hedge position reaches a configured floating profit, the program monitors it and closes it when profit retraces from its peak by a set distance.
- Trend-following module. When a trend is confirmed, the program opens a protective first position and adds pyramiding entries after pullback confirmations, with decreasing lot sizes and a capped total exposure. Exits are based on Break of Structure (BOS): swing points confirmed by fractals and ATR-adaptive thresholds. Exits are executed in batches, with a retained-profit option for the first position. A circuit breaker pauses re-entry after excessive structure touches.
- Slow-trend detection module. A combination of efficiency ratio, net directional movement and volatility identifies slow one-sided markets, with an optional additional lock protection and a log-only observation mode.
- One-click control panel and email notifications for hedge open/close events (SMTP configured in the terminal).
Risk Control Notes
- Lot sizes scale proportionally with balance. No martingale-style doubling.
- Stop loss and take profit of the grid, hedge and trend modules are independent parameters and can be disabled separately.
- Trend entries decrease in size and are capped by both a maximum number of additions and a net exposure limit.
- The program uses no DLLs, no network access and reads no personal account data.
Recommended Conditions
- Symbol: XAUUSD (Gold)
- Timeframe: H1
- Account: Hedging mode, MetaTrader 5
- Broker: a broker with low gold spreads and stable execution is recommended; the program normalizes quote digits automatically
- Environment: a 24/7 VPS is recommended for stable network and power
- Initial capital: default parameters are designed around a 30000 USD base balance with a 0.02 base lot; lots scale proportionally with balance, so smaller accounts should reduce the base lot accordingly
- Please verify thoroughly on a demo account or in the Strategy Tester before considering live trading
Main Parameters
Grid module:
- Lots_1 / IsDynamicLots / DynLots_BalanceBase / DynLots_BaseLots: lots and balance-linked sizing
- Str_Step: grid spacing list in points
- IsEquityStep / Str_EquityStepMap / IsStopAddLowest: equity-linked spacing map and stop-add protection
- Pips_Gua: pending order distance
- IsRangeFilter: require ranging state before opening
Hedging module:
- IsHedgeOpen / Pips_HedgeTrigger / HedgeLotsRatio: switch, trigger distance and lot ratio
- Pips_HedgeSL / Pips_HedgeTP: hedge stop loss and take profit
- IsHedgeReduce / Pips_HedgePoolStart / HedgeReduceEquityPct: profit-based reduction with dual gating
- IsHedgeRepeat / IsHedgeLossCool / HedgeMaxLossStreak: re-hedging and loss-streak cooldown
- IsHedgeTrailTP / HedgeTP_StartPips / HedgeTP_BackPips: hedge drawdown take-profit
- IsHedgeBreakReopen / HedgeBreakReopenPips: breakout override for the suspension lock
Hedge filter:
- HedgeFilterMode / HedgeFilterDevPips / HedgeFilterAdxNow / HedgeFilterRsiNow / HedgeFilterRsiH1: filter mode and thresholds
- HedgeFilterEquityGuardPct: equity guard exemption
Trend module:
- IsTrendStrategy / TrendLotsRatio / TrendAddFactor / TrendMaxAdds / TrendMaxNetLots: switch and position control
- TrendUseSwing / TrendFractalN / TrendUseATR: BOS detection and ATR adaptation
- TrendTPStartPips / TrendTPBackPips / TrendKeepFirstProfit: trailing take-profit and batch exits
- TrendChurnLimit / TrendChurnMult / TrendChurnHardCap: churn suppression and circuit breaker
Slow-trend detection:
- IsRegimeHedge / IsRegimeLogOnly / RegimeW / RegimeER_IN / RegimeER_OUT and related parameters
Full parameter descriptions are provided in the screenshots and the user manual.
Risk Disclosure (please read carefully)
This product is an automated trading tool. It is not an investment product, it does not promise any profit, and it does not guarantee the safety of your capital.
- Margin trading involves a high level of risk. Leverage amplifies both profits and losses, and in the worst case the entire invested capital may be lost.
- The strategy is grid-based by design. During prolonged one-sided markets, the number of open positions and the floating loss can accumulate significantly. This is a structural weakness of this class of strategies. The hedging and filtering modules mitigate this risk but cannot eliminate it.
- Historical backtests are provided only to illustrate the historical behavior of the strategy and do not represent future performance. Backtests performed during development showed equity drawdowns exceeding 50% within an interval of about 30 months, and roughly seventy percent of hedge positions historically closed at a stop loss. Hedging is a risk-mitigation tool, not a capital-protection guarantee. Future drawdowns may exceed historical extremes.
- Network interruptions, VPS failures, broker slippage, platform updates and other technical factors may prevent the program from executing as expected.
- Use only idle funds you can afford to lose, and make sure you fully understand the strategy logic and all parameters before live use. By using this program you acknowledge and accept these risks, and you remain solely responsible for all trading results.
