Fafnir
- エキスパート
- バージョン: 2.5
- アクティベーション: 10
LIVE SIGNAL: https://www.mql5.com/es/signals/2399375
FAFNIR
One Expert Advisor, one XAUUSD M5 chart, two independent strategies that work at different times of the day:
- SOL - gold breakouts by day (XAUUSD)
- ECLIPSE - FX fade by night (EURUSD, GBPUSD, AUDUSD, USDCAD)
SOL - GOLD BREAKOUTS
Resting stop orders on price levels the market has respected for hours or days. When a level breaks, the order fills and one of four engines manages the trade:
- Sniper - 12-hour extremes, fixed 5 USD stop. Closes 30 % at +2R, adds once at +3R and trails the rest.
- Runner - daily extremes, stop of 0.3 x the average daily range. Closes half at +1.2R and leaves after 8 hours.
- Ratchet - follows the Runner entries with a tight trailing stop. Active only when the 14-day range of gold is above 80 USD.
- Talon - breakout scalper on 72-hour extremes that have held for at least 30 minutes. Stop 1.5 USD, target 15 USD, out within 2 minutes if nothing happens. Needs fast fills.
Every gold order carries its stop loss on the server from the moment it is placed.
ECLIPSE - FX FADE BY NIGHT
In the quiet hour around the New York close (23:00-00:59 server time) ECLIPSE trades against sharp 15-minute moves, larger than 0.10 x the average daily range of the pair.
- A basket has up to 5 equal legs, added each further 0.10 x range (at least 30 minutes apart). The lot is never multiplied.
- One common target (0.08 x range beyond the average entry), break-even after 4 hours, closed within 12 hours.
- No new baskets while the VIX is above 40.
- ECLIPSE legs have no individual stop loss: the basket closes by target or by time. It can be reduced (InpEclMult) or switched off (InpEclOn).
HOW IT BEHAVES
- The gold engines wake up only when the 14-day average range of gold is wide (above 60 USD for Sniper, above 80 USD for Ratchet and Talon). In quiet markets FAFNIR trades less instead of forcing entries.
- In the Strategy Tester, year by year from 2020 to 2026 at 1 % risk, the quiet years 2020-2024 gave small results with drawdowns of 2.5-8 %. The active years 2025-2026 gave much larger ones. If gold calms down again, expect the first kind of year.
- Low exposure: positions are open about 14-16 % of the time.
PROTECTION
- Stop loss on the server on every gold order.
- News filter with an embedded calendar, so the Strategy Tester applies it too.
- Everything closed 60 minutes before the weekend.
- Optional daily loss and drawdown limits, kept after a restart.
- Slippage brake: Talon pauses itself if the last 50 entries slip more than 0.88 USD on average.
- VIX crisis shield for ECLIPSE.
- Spread, session and margin filters. If the minimum lot would risk more than twice the risk you set, the trade is skipped.
- One chart per account: a second FAFNIR with the same magic number refuses to start.
MAIN SETTINGS
- InpSolRisk - risk per trade in % (default 1). ECLIPSE follows it by default.
- InpSolSizing - risk % of balance, risk % of equity, fixed lot or auto lot.
- InpSolBreakout, InpSolRatchet, InpSolTalon, InpEclOn - switch each module on or off.
- InpEclMult - ECLIPSE size relative to SOL (0.5 = half).
- InpDailyLoss, InpMaxDD - pause after a daily loss or a drawdown from the peak (0 = off).
- InpWeekendFlat - close everything before the weekend (default on).
- InpTalonGuard - Talon slippage brake in USD (default 0.88, 0 = off).
- InpVixLevel - VIX level of the ECLIPSE shield (default 40).
- InpPanel - show or hide the on-chart panel.
RISK GUIDE
The default is 1 % per trade. In the Strategy Tester (XAUUSD, 10 Nov 2025 - 9 Nov 2026, deposit 1,000 USD) the maximum equity drawdown was 7.6 % at 1 % risk, 14.3 % at 2 %, 20.5 % at 3 % and 53 % at 10 %. Drawdown grows with risk, and the same happens in live trading. Start low.
REQUIREMENTS
- Symbol and timeframe: XAUUSD, M5, one chart. ECLIPSE finds the four FX pairs and the VIX symbol by itself.
- Account: hedging.
- Broker: low-spread gold (RAW or ECN account), server time GMT+2 / GMT+3.
- Leverage: 1:100 or higher. Accounts limited to 1:30 or less will miss some Talon entries.
- Minimum deposit: 1,000 USD.
- A VPS close to the broker is recommended: Talon needs fast execution.
HOW TO TEST IT
Use "Every tick based on real ticks" on XAUUSD M5. The screenshots show Strategy Tester results (10 Nov 2025 - 9 Nov 2026, starting with 1,000 USD, risk 1 %, 3 % and 10 %) and a year-by-year test since 2020.
RISK NOTICE: Trading leveraged products involves a high risk of loss. Strategy Tester results do not guarantee future performance. FAFNIR depends on the volatility of gold,in calm years its results were small. Test it on a demo account before using real money.
