Fairlead Gold Average
- Эксперты
- Версия: 1.0
- Активации: 5
Fairlead Gold Average is an original Expert Advisor for gold (XAUUSD). It looks for a short-term stretch against the higher-timeframe trend, then manages one averaging basket at a time.
This is an averaging system. When price moves against an open basket, the EA can add volume in the same direction. That can pull the average price closer to the market and help a modest take-profit hit, but it also increases exposure on a losing idea. A strong one-way move can produce a large loss. The hard basket stop, daily loss limit and equity guard cap that damage; they do not remove it. Past results do not guarantee future results.
How it trades
- Trend filter on H4: price and the EMA must agree on direction (default EMA 50, with a short slope check).
- Entry on completed M5 bars (M15 is supported): a close at or beyond the Bollinger band, with RSI at or beyond the buy/sell level, only in the H4 direction.
- One basket at a time. Further layers are added when price moves against the last fill by StepATR × ATR (default 1.0), up to MaxOrders layers (default 5).
- Lot of layer n = base × LotMultipliern-1 (default multiplier 1.2). Base lot is LotsPerThousand of equity (default 0.01 per USD 1,000) or a fixed lot if you set one.
- The whole basket is closed at TakeATR × ATR from the volume-weighted average price, or when floating loss reaches BasketStopPercent of equity (default 10%).
- On netting accounts, adds increase the single net position; take-profit and the basket stop are managed by the EA on the average price. On hedging accounts, each layer is a separate ticket and they are closed together.
Risk controls
- Maximum 5 layers per basket (default).
- Hard basket stop: default 10% of equity.
- Equity drawdown guard: default 30% below peak equity, which closes the basket and stops trading until you set ResetGuardOnStart=true after reviewing the account.
- Daily loss limit: default 5% from the server-day start (no new entries or adds; the open basket is closed by default).
- Spread filter, optional 08:00-21:00 server-time entry window, optional Friday block.
- Live only: optional pause around high-impact USD events from the MetaTrader 5 Economic Calendar. The Strategy Tester has no calendar data, so this filter is inactive in tests.
- Margin, volume, trade-mode, stops-level and freeze-level checks before orders and closes. If the sized lot is below the broker minimum, the minimum lot is used only when it fits the risk cap; otherwise the EA skips and logs.
- No DLL, no WebRequest, no hidden behaviour.
Tested results (honest)
All official gold figures below are every tick based on real ticks, 100% history quality, JustMarkets-Demo2 symbol XAUUSD.m, leverage 1:100, v1.00 defaults, hedging. Period: 15 November 2025 to 15 November 2026. The EA was compiled with 0 errors and 0 warnings (MetaEditor build 6292). None of these runs produced trade errors or a stop-out.
USD 1,000 (the intended test deposit; at this size the 0.01 minimum lot is used throughout):
- Net profit: +276.60. Profit factor 1.15. Recovery factor 1.00. Sharpe ratio 6.52.
- Equity drawdown maximal: 277.42 (20.65%). Balance drawdown maximal: 265.48 (19.55%).
- 347 baskets (323 winners, 24 losers), 598 position legs. Largest basket loss: -91.81 (5 layers, 0.06 lots, 18 February 2026). The daily loss limit closed 24 baskets; the 10% basket stop was not used; the 30% equity guard did not trip.
Light tuning used only the first eight months (15 November 2025 to 15 July 2026). The last four months were held out. Closed-deal split of the full-year USD 1,000 run (cut at 15 July 2026, by deal close time):
- Tuning-window closes: net +284.03, profit factor 1.24, 373 deals.
- Held-out closes: net -7.43, profit factor 0.99, 225 deals.
The held-out window was about break-even. This is not a year of steady edge after the cut, and it is not a forecast.
USD 10,000, same defaults (lots scale with equity: 0.01 per USD 1,000):
- Net profit: -904.39. Profit factor 0.94.
- Equity drawdown maximal: 3,901.77 (30.02%). On 11 August 2026 the equity guard tripped (equity 9,095.61 was 30% below the peak of 13,002.54) and trading stopped for the rest of the test.
- 245 baskets. Largest basket loss: -988.82. Split by close time: tuning-window net +568.32 (PF 1.04, 355 deals); held-out net -1,472.71 (PF 0.35, 44 deals — the sample is short because the guard had already halted the EA).
A sensitivity run on USD 10,000 with FixedLot=0.01 (everything else unchanged; this is not the default) ended at net +990.97, profit factor 1.38, equity drawdown 1,137.54 (9.84%), with a held-out net of -70.34 (PF 0.93). The 30% guard did not trip. The largest basket loss was -800.39. This shows that scaling the lot with equity is what made the default USD 10,000 run hit the guard. Even with a small fixed lot, the held-out window was slightly negative.
Small-deposit netting checks (USD 1,000, 1-minute OHLC, 15 November 2025 to 15 November 2026, same defaults; these are technical checks, not official quality, and OHLC can look better than real ticks):
- XAUUSD on a Daily chart (signals still read on M5 / H4): net 841.99 from 360 baskets, profit factor 1.48, equity drawdown 293.66 (14.64%).
- EURUSD H1 (same rules): net 228.60 from 270 baskets, equity drawdown 53.86 (5.11%). Almost every basket hit the take-profit in this calmer market. EURUSD is not a recommended product use.
Recommendations
- Attach it to XAUUSD on an M5 chart (or leave SignalTF at M5 on any chart).
- The published defaults were tested for a USD 1,000 gold account at 0.01 lot. If your deposit is larger, consider a fixed 0.01 lot or a lower LotsPerThousand; the default scaling tripped the 30% equity guard on a USD 10,000 real-tick test.
- Use a low-spread gold account and run it 24/5 on a VPS. Entries default to 08:00-21:00 server time; exits and averaging are managed around the clock.
Inputs (v1.00 defaults)
| SignalTF | M5 |
| TrendTF / TrendEMA / TrendSlopeBars | H4 / 50 / 2 |
| BBPeriod / BBDeviation | 20 / 2.0 |
| RSIPeriod / RSIBuyLevel / RSISellLevel | 14 / 30 / 70 |
| SessionStartHour / SessionEndHour | 8 / 21 (start=end means 24 hours) |
| StepATR / TakeATR | 1.0 / 0.50 |
| LotMultiplier / MaxOrders | 1.2 / 5 |
| LotsPerThousand / FixedLot / MaxLots | 0.01 / 0 / 1.0 |
| BasketStopPercent | 10.0 |
| EquityGuardPercent | 30.0 |
| DailyLossPercent / DailyLossCloseBasket | 5.0 / true |
| MaxBasketsPerDay | 8 |
| MaxSpreadATR | 0.35 |
| NewsFilter / NewsCurrencies / before / after | true / USD / 30 / 15 minutes (live only) |
| MaxFreeMarginUsePercent / MinMarginLevel | 30 / 300 |
Risk warning
Trading leveraged gold CFDs carries a high risk of loss. Averaging adds volume to positions that are already losing, so a long adverse move can take a large share of the account even with the default caps. These figures are historical simulations over a single year on one broker's data. Live spreads, slippage, swaps and news will differ. The held-out window on the USD 1,000 real-tick test was slightly negative. The default USD 10,000 real-tick test lost money and was halted by the equity guard. There is no live signal for this EA yet. Never risk money you cannot afford to lose, and test it on a demo account first.
