Gunwale Gold Cloud
- Experts
- Versão: 1.0
- Ativações: 5
Gunwale Gold Cloud is an original Expert Advisor for gold (XAUUSD). It trades closed-bar breakouts of the Ichimoku Kinko Hyo cloud (Kumo). Every order has a stop-loss. It holds one position at a time.
No grid, no martingale, no averaging, no partial closes, no DLL, no web requests, no hidden behaviour.
How it trades
- Signal. Standard Ichimoku 9 / 26 / 52 on a chosen signal timeframe (default H1). The chart timeframe does not matter. Only closed bars are used.
- Entry. When a bar first closes outside the Kumo in the cloud's direction (Span A relative to Span B), with Tenkan/Kijun alignment and Chikou confirmation (the signal bar's close is clear of the high/low from 26 bars earlier). The EA takes at most one trade per excursion outside the cloud.
- ADX filter. ADX(14) must be at least 20 and rising on the signal bar. This can be turned off or raised.
- Daily cloud bias. The last closed D1 bar must also be outside the daily Kumo in the same direction. Ignored when the signal timeframe is D1 or higher. In tuning, turning this off produced more trades and a weaker result.
- Stop. 3.0× ATR(14) of the signal timeframe, sent with the order.
- Target. 3× the stop distance, sent with the order. Set it to 0 to turn the target off.
- Cloud-return exit. The position is closed when a bar closes back inside or through the cloud.
- Optional trailing. TrailMode 1 trails the stop to the Kijun-sen. TrailMode 2 trails an ATR distance from the close. Both are off by default; in tuning, a Kijun trail with no target was weaker than the defaults.
Risk controls
- Position size. 1% of equity at the stop. If the broker's minimum lot is larger than that, the minimum lot is used only when its stop risk is at most 5% of equity. Small accounts can tighten the stop down to 1.5× ATR to fit that cap. Otherwise the trade is skipped and logged.
- Daily loss limit. 3% from the start of the server day. No new entries for the rest of that day.
- Equity guard. If equity falls 20% below its peak, new entries are paused for 5 days.
- Spread filter. The spread must be at most 0.15× ATR. An optional cap in points is also available.
- Friday cutoff. An optional hour after which no new entries are placed on Friday (off by default).
- Order checks. OrderCheck, OrderCalcMargin, volume, trade mode, stops level and freeze level are checked before every order, modify and close. Works on hedging and netting accounts.
Tested results (honest)
Test conditions. Every tick based on real ticks, JustMarkets-Demo2 symbol XAUUSD.m, H1, leverage 1:100, v1.00 defaults. Period 16 November 2025 to 16 November 2026 (broker data ends 13 November 2026). 81,113,443 ticks, history quality 100% real ticks. Compiled with 0 errors and 0 warnings. No run produced trade errors or a stop-out.
USD 10,000:
- Net profit +2,034.27, profit factor 2.65, recovery factor 5.78, Sharpe ratio 4.93.
- Equity drawdown maximal 352.19 (2.93%). Balance drawdown 263.26 (2.20%).
- 51 trades, 41.18% winners. Average win +155.45, average loss -41.01, largest loss -113.51. Maximum consecutive losses: 6 (-227.14).
- 36 of the 51 trades were closed by the cloud-return exit. A netting-account run gave the same result.
Tuning vs held-out months. Settings were chosen on 16 November 2025 to 16 July 2026 only. I compared five variants: the defaults, a Kijun trail with no target, a 2-ATR stop with a 2R target, no daily-cloud bias, and an H4 signal timeframe. The defaults had the highest net profit and the lowest drawdown. The H4 variant had a higher profit factor (5.34) but only 10 trades; the version without the daily bias was clearly weaker (PF 1.16, equity drawdown 6.51%). Split of the full-year USD 10,000 run by deal close time:
- Tuning window: +1,668.18, PF 3.12, 36 trades, 47.2% winners.
- Held-out last four months: +366.09, PF 1.82, 15 trades, 26.7% winners. This is clearly weaker than the tuning window (lower profit factor and win rate), so expect weaker results than the full-year figure.
USD 5,000 (same period, real ticks): net +1,209.88, PF 2.43, equity drawdown 203.50 (3.27%), 51 trades. Tuning window +1,087.87 (PF 2.76), held-out four months +122.01 (PF 1.54). At this size 22 of the 51 entries used the 0.01 minimum lot, so those trades risked more than 1% (up to the 5% cap).
USD 1,000 (same period, real ticks): net +802.03, PF 2.33, equity drawdown 203.50 (11.30%), 41 trades. All 41 entries used the minimum lot; 10 further signals were skipped because the 0.01 lot would have risked more than 5% of equity, the stop was tightened on one trade, and the daily-loss guard halted new entries on 15 days. Tuning window +670.30 (PF 2.75), held-out +131.73 (PF 1.60). Profitable in this test, but the drawdown and the number of minimum-lot trades are high for a USD 1,000 gold account.
Small-deposit netting checks (1-minute OHLC, same period; technical checks only, to confirm the EA can open trades and skip safely):
- XAUUSD D1 chart, USD 1,000: +801.06, 41 trades, equity drawdown 11.46%. (The signal timeframe is still H1.)
- EURUSD H1, USD 1,000: -25.52, 47 trades, equity drawdown 8.63%. The EA is not designed for EURUSD.
- XAUUSD, USD 100: 0 trades. All 51 candidate entries were skipped and logged because the 0.01 minimum lot would have risked 38% to 60% of equity at a 3-ATR gold stop.
- EURUSD H1, USD 100: -12.40, 35 trades, equity drawdown 35.37%.
Recommendations
- XAUUSD, any chart timeframe. The signal timeframe defaults to H1.
- Minimum deposit: USD 5,000 (tested: profitable, 3.27% equity drawdown; some minimum-lot trades). USD 10,000 or more lets the 1% risk sizing work on almost every trade. USD 1,000 was profitable in this test but is not recommended. Use a low-spread gold account and a VPS.
- There are only about 50 trades per year with the default filters. Results are sensitive to a relatively small number of trend moves, and the held-out months were weaker than the tuning window.
Inputs (v1.00 defaults)
| SignalTF | H1 |
| TenkanPeriod / KijunPeriod / SenkouPeriod | 9 / 26 / 52 |
| AdxPeriod / AdxMin / AdxMustRise | 14 / 20 / true |
| RequireCloudDirection / RequireTenkanKijun / RequireChikou | true / true / true |
| UseDailyCloudBias | true (ignored if SignalTF is D1 or higher) |
| EnableLong / EnableShort | true / true |
| SessionStartHour / SessionEndHour / FridayCutoffHour | 0 / 0 (24h) / 0 (off) |
| AtrPeriod / StopATR / TakeProfitR | 14 / 3.0 / 3.0 (0 = no target) |
| ExitOnCloudReturn | true |
| TrailMode / TrailATR | 0 (off; 1 = Kijun-sen, 2 = ATR) / 3.0 |
| RiskPercent | 1.0 |
| MaxMinLotRiskPct / SmallAccountStopATR | 5.0 / 1.5 |
| DailyLossPercent | 3.0 |
| EquityDDPercent / PauseDays | 20.0 / 5 |
| MaxSpreadATR / MaxSpreadPoints | 0.15 / 0 (off) |
| MaxFreeMarginUsePercent / MinMarginLevel | 30 / 300 |
| SlippagePoints / MagicNumber / ShowPanel | 30 / 26111701 / true |
Disclaimer
These are historical simulations on one broker's data over one year. They do not promise future results. Trading gold with leverage can lose money, including more than the backtests show.
