GoldSwingXAU
- Эксперты
- Версия: 1.50
- Активации: 5
GoldSwing is a swing trader that uses the classic ZigZag pivot structure. It waits for a swing high or low to be confirmed, then trades away from that pivot: long after a confirmed bottom, short after a confirmed top. HOW IT WORKS - Pivot detection: classic ZigZag algorithm (Depth / Deviation / Backstep). Only the CONFIRMED pivot is used - the newest node is still forming and is deliberately ignored. - Entry: on the close of a new bar, in the direction of the current swing. - Stop loss: behind the swing itself plus a small ATR buffer. - Take profit: 3x the stop distance (configurable, 0 = no TP). - Exit: take profit, stop loss, or reversal when the confirmed swing flips. - Filters: minimum leg size from the pivot, minimum pivot age, maximum stop width, trading session window, spread cap, optional daily loss cap. POSITION SIZING - Fixed lot, or percent of equity per trade (risk is read from the actual stop distance, with a broker-safe fallback). - Volume is automatically reduced if free margin is not enough. - No martingale, no averaging, no grid, no hidden recovery mode. RECOMMENDED - Symbol: XAUUSD (gold). XAGUSD also works but is more volatile and needs a larger deposit for the same lot size. - Timeframe: M20. The EA has its own working timeframe input (InpTF), so the chart timeframe does not have to match. - Session hours are SERVER TIME - check your broker's server time and adjust InpSessionStartHour / InpSessionEndHour if your server differs. - Keep the spread cap at a value your broker can actually meet during the session, otherwise the EA will simply not trade. WHAT THE STATISTICS MEAN - This is a low win-rate, high reward/risk system. It wins about one trade in three and earns from winners that are roughly three times bigger than losers. Long losing streaks are normal and expected: 13 consecutive losses occurred in the 2026 test and 14 in the 2.8-year test. - Because of that, position size matters more than the entry signal. At 0.01 lot on XAUUSD a single losing trade is typically 60-110 USD. IMPORTANT - READ BEFORE BUYING - ZigZag recalculates the last few extremes while a swing is still forming. This EA only acts on confirmed pivots, but the historical indicator line will still shift at the right edge. That is normal for every ZigZag based product and is the reason the EA waits for confirmation instead of chasing the newest node. - The win rate is about 35%. Expect long losing streaks. Size accordingly. - In a sideways market the EA takes small losses until a real swing develops. - The silver test below shows a 30.55% equity drawdown. Silver can be traded, but only with a deposit and lot size that can absorb that drawdown. - Backtests are not a promise of future results. Please run it on a demo account first, ideally for several weeks. RISK WARNING Trading leveraged CFDs and foreign exchange carries a high risk of loss. This EA has a low win rate and depends on a few large winners, so any single period can be unprofitable. Never risk money you cannot afford to lose, and never run it on an account where one stop loss is more than a few percent of the balance.
Test conditions (for the description)
Symbol: XAUUSD (gold) / XAGUSD (silver) Timeframe: M20 Lot size: fixed 0.01 Deposit: 5000 USD Leverage: 1:100 Spread cap: 80 points (150 on silver) Session: 08:00-17:00 server time Optimisation: none after the final run
Table 1 — Validation summary
| # | Test | Period | Model | Net profit | Trades | PF | DD balance | DD equity |
|---|---|---|---|---|---|---|---|---|
| 1 | XAUUSD | 01/2024 – 11/2026 | Real ticks | +2935.62 | 975 | 1.29 | 5.87% | 9.19% |
| 2 | XAUUSD | 01/2026 – 11/2026 | M1 OHLC | +2421.26 | 286 | 1.51 | 6.18% | 6.61% |
| 3 | XAUUSD out of sample | 01/2024 – 12/2025 | M1 OHLC | +603.66 | 688 | 1.12 | 8.15% | n/a |
| 4 | XAGUSD | 01/2026 – 11/2026 | M1 OHLC | +2235.02 | 268 | 1.24 | 25.70% | 30.55% |
| 5 | XAGUSD | 05/2026 – 11/2026 | Real ticks | +645.36 | 175 | 1.16 | 7.75% | 8.40% |
PF = profit factor. Run 1 was executed on 189,498,192 real ticks (Sharpe 2.20, recovery factor 2.47). Run 2: Sharpe 2.84, recovery factor 4.72.
Table 2 — Detailed statistics, Run 2 (XAUUSD M20, 01/2026 – 11/2026, M1 OHLC)
| Metric | Value |
|---|---|
| Initial deposit | 5000.00 USD |
| Net profit | +2421.26 USD (+48.4%) |
| Gross profit | 7189.33 USD |
| Gross loss | 4768.07 USD |
| Profit factor | 1.51 |
| Expected payoff | 8.47 USD per trade |
| Recovery factor | 4.72 |
| Sharpe ratio | 2.84 |
| Total trades | 286 |
| Profit trades / Loss trades | 99 / 187 |
| Win rate | 34.6% |
| Average win / average loss | about 2.9 : 1 |
| Largest profit trade | 509.92 USD |
| Largest loss trade | 109.50 USD |
| Max consecutive wins | 5 |
| Max consecutive losses | 13 |
| Short trades / Long trades | 155 / 131 |
| Max drawdown (balance) | 477.64 USD = 6.18% |
| Max drawdown (equity) | 512.94 USD = 6.61% |
| Minimum balance | 4754.97 USD |
Table 3 — Minimum account size
Rule of thumb: XAUUSD, 0.01 lot, one losing trade is typically 60–110 USD.
| Balance | One loss as % of balance | Comment |
|---|---|---|
| 500 | 12% – 22% | Not viable – too risky |
| 1000 | 6% – 11% | Very high risk |
| 2500 | 2.4% – 4.4% | Minimum, aggressive |
| 5000 | 1.2% – 2.2% | Recommended |
| 10000 | 0.6% – 1.1% | Comfortable, or 0.02 lot |
How to read the tables
- This is a low win-rate, high reward/risk system. It wins about one trade in three and earns from winners that are roughly three times larger than the losers. Long losing streaks are normal and expected: 13 consecutive losses occurred in run 2 and 14 in run 1. - Because of that, position size matters more than the entry signal. If one losing trade is more than a few percent of the account, a normal losing streak can end the account before the statistics have a chance to work. - Run 4 (silver) shows a 30.55% equity drawdown. Silver can be traded, but only with a deposit and lot size that can absorb that drawdown. - A backtest is a simulation, not a promise. Please test on a demo account for several weeks before using real money.
