Home >Aggressive EAs >GOLD VIPER

GOLD VIPER EA

✓ Even if we cannot confirm the account was opened through our link (an account you already had, or a demo account), applying activates a 14-day trial right away.

Watch on the video page →

GOLD VIPER EA

aggressive gold breakout (XAUUSD M30)

🌱 4-line summary for beginnersGlossary

What does this EA do?
An aggressive EA that runs three sets of 8 stop-order strategies on gold (XAUUSD); the M30 breakout is off by default from v2.42. Exness 7.7-year test: PF 1.90, max DD 18.5%.
Price?
Free: register an account with a partner broker and download a copy locked to that account. If you don't want to open an account, buy it on the MQL5 Market (buy-out or rent; the price is shown on the purchase page). Both options are lower on this page.Go to the free download steps ↓
Who it suits
People who want larger moves on gold and can tolerate a percentage drawdown of around 34%. If this is your first EA, start with one that has a smaller DD.
After getting it
  1. Install MT5
  2. Free version: put the downloaded file in the MT5 Experts folder. If bought on MQL5, it appears in the MT5 'Market' tab. Drag it onto a chart and set it up
  3. Check it in the Strategy Tester first, then start on a XAUUSD M30 chart with the minimum lot

Live-spread backtest

PF 1.90 / DD 33.7%

Trades 13,250Profit factor: 1.90Rel. equity DD 33.7%XAUUSD M30

Measured with the default settings (v2.44, RunMode = Ultra = Standard ×1.0): +41,504% / PF 1.90 / balance DD 17.7% / equity DD 18.5% / 13,250 trades / win rate 58.2% (+119.6% per year). The equity drawdown is 33.7% when measured as the largest percentage drop. Exness XAUUSDm M30, 2019.01-2026.09, $10,000, compounding, MT5 "every tick based on real ticks" mode. History quality is only 8% (real ticks exist for part of the period), so the figures may be on the optimistic side.

The figures above are measured with the default settings (v2.44, breakout off by default) on Exness XAUUSDm M30, 2019.01-2026.09, $10,000, compounding. MT5 ran in "every tick based on real ticks" mode, but history quality is 8% (real ticks were stored for only part of the period; the rest is generated from M1 bars). The former v2.13 Dukascopy 22.5-year headline figures are withdrawn because the engine configuration differs.

⚠ Aggressive EA. Even at default settings the largest percentage equity drop reaches about 34%, and about 41% in Aggressive mode. Trade only with money you can afford to lose.

⚡ The backtest starts at $10,000. The second engine orders at least 0.01 lot, so on small accounts the effective risk is higher than set. For small balances a micro (cent) account is recommended

Verification Status

Share on X

How far verification has progressed, from backtest to forward testing

  1. BacktestDone
    Period
    M30 (2019.01.01 - 2026.09.01)
    History quality
    8% real ticks — real-tick coverage is low for this period, so fill prices are reproduced less accurately
    Trades
    13250
    PF
    1.90
    Max DD (relative, equity)
    33.68% (equity DD at the largest loss in money terms: 18.52%)
    Recommended minimum capital
    $1,000+ recommended
  2. OOSCaution
    Data source
    MT5 official ticks
    Years verified
    7.7
  3. ForwardIn progress

    This EA is in forward testing. Results for all EAs are published together on the forward test page.

    See all forward tests →
  4. LiveNot started

How it works

[Off by default from v2.42] The following describes the M30 volatility-regime breakout, formerly the main engine. In v2.44 it does not run by default; the EA trades only with the second to fifth engines below. Set UseCoreBreakout = true to switch it back on. Hypothesis: gold forms its strongest initial trends at calm-to-volatile regime transitions. This engine trades only when the ATR regime filter (fast ATR / slow ATR >= 1.2) and EMA50/200 trend agreement confirm a moving market, then enters on a closed-bar breakout of the 32-bar channel with an ATR margin. Exits are ATR-scaled: once group profit reaches the group TP (ATR x 3.0) a group trailing stop (width ATR x 0.4) rides the peak to let winners run, while the group SL (ATR x 1.5) caps the whole basket hard. On adverse moves it averages with same-size grid entries (max 5, no martingale) while the group SL caps the whole basket. Lot size is volatility-normalized risk% (a group-SL hit = 2.3% of balance). v2.13 adds regime-quality sizing: the stronger the volatility regime at entry (volRatio above the 1.2 gate), the larger the lot (up to x1.5) - losing regimes keep the base lot, so drawdown stays nearly unchanged while profits compound faster.

Second engine: 8 fractal stop-order strategies (v2.35, always on)

Since v2.35, eight strategies place stop orders at D1 fractal highs and lows (H4 for strategy 2) and trail winners before exit. They are always on and use their own magic range (FB_MagicBase to +7). From v2.42 this is the core of the default setup, with double the lot size (FB_RiskPercent 0.5 → 1.0). AllowBuy/AllowSell apply to all engines; RunMode scales the breakout, this engine and the fourth engine. ★Attach to only one chart (XAUUSD M30) per account. On several charts the orders of the second, third and fourth engines would be duplicated (the former TWIN/PACK setups are discontinued).

Third engine: 8 more stop-order strategies (v2.36, on by default)

v2.36 adds a third engine: eight more stop-order strategies on the same chart, with their own magic numbers (2610020 to 2610027; order comments start with GR8_). It sizes orders from its own unit balance (0.01-0.05 lots per order on a 1,600 USD unit × GR_LotMult; v2.42 doubles the default from 1.0 to 2.0) and is not scaled by RunMode. Set UseReaperEngine = false to switch it off.

Fourth engine: 8 daily-fractal stop-order strategies (v2.38, on by default)

v2.38 adds a fourth engine: eight stop-order strategies placed at daily-chart fractal highs and lows (refreshed once a day, up to eight orders per side), with their own magic numbers (2610060 to 2610067; order comments start with GB1_). Every order carries a stop loss and a take profit. After a fill, the trade is closed at once unless the M1 bar and then the M30 bar close in its direction; winners are moved to break-even and then trailed. Sells are allowed only when the previous day's close is below the 50-day moving average, and positions and pending orders are cleared before the US jobs report. Each order risks 0.5% of the balance (G1_RiskPercent; doubled from 0.25% in v2.42) × RunMode, capped at 5 lots. Up to 58 pending orders were open at the same time, so use an account that allows at least 70 simultaneous orders. Set UseGoldbotEngine = false to switch it off.

Fifth engine: multi-timeframe pivot stop orders (v2.43, on by default)

v2.43 adds a fifth engine: a multi-timeframe pivot stop-order engine. It places buy-stop and sell-stop orders at pivot levels, and every order is sent with a stop loss and a take profit. It uses its own magic number (TR_MagicNumber, default 20261127) and sizes orders at 0.01 lot per 10,000 of balance (TR_LotPerBalance × TR_LotMult); RunMode does not affect it. It runs on gold symbols only. On a balance too small for the minimum lot (below 10,000 with the defaults) it does not trade and does not round up to the minimum lot. Set UseEngineTarantula = false to switch it off. v2.44 (live trading only): the third engine's pending orders are removed from 10 minutes before to 15 minutes after a high-impact economic release and placed again afterwards. The economic calendar is not available in the tester, so backtest results are the same as v2.43.

Entry & exit timing (when the breakout is switched on)

  • Entry: closed-bar breakout of the 32-bar (M30) channel + ATR x 0.6 margin + EMA50/200 trend agreement
  • Regime gates: ATR ratio >= 1.2 (volatility expansion only) + |EMA50-EMA200| >= ATR x 0.5 (trend present)
  • Take profit: after the group TP (ATR x 3.0) a trailing stop (trigger ATR x 3.0 / width ATR x 0.4) rides the peak
  • Stop loss: group SL = ATR x 1.5, executed by the EA and checked every tick (breakout orders carry no broker-side SL, so keep the EA running)
  • Scale-in: same-size grid add every ATR x 1.0 adverse move (max 5, no lot escalation = no martingale)
  • Safety: monthly -8% circuit breaker (pauses new baskets for the rest of a losing month) / regime-quality sizing scales lots only on strong regimes (cap x1.5) / emergency close at 150% margin level / trading hours 6-20 server time / Monday-open & Friday-close avoidance

Live-spread backtest

Total return (7.7y compounding)

+41,504% (x416)

Profit factor

1.90

Win rate

58.2%

Max balance DD

17.7%

Max equity DD

33.7%

Trades

13,250

The figures above are measured with the default settings (v2.44, breakout off by default) on Exness XAUUSDm M30, 2019.01-2026.09, $10,000, compounding. MT5 ran in "every tick based on real ticks" mode, but history quality is 8% (real ticks were stored for only part of the period; the rest is generated from M1 bars). The former v2.13 Dukascopy 22.5-year headline figures are withdrawn because the engine configuration differs.

📈MT5 Strategy Tester Report — GOLD VIPER EA

🏆 MT5 Official Strategy Tester Result · XAUUSD / M30Open original in new tab →
GOLD VIPER EA Strategy Tester Report

📋 About this report

  • Official report generated by the MT5 Strategy Tester (real-tick data)
  • Multi-year real price data with the every-tick (real ticks) model
  • Balance curve (blue) / Equity curve (green) shows floating losses too
  • Past results do not guarantee future profits

Where it fails / main risks

  • Extended ranges: failed breakouts reversing before TP produce consecutive group-SL hits (2020 and early 2024 were such regimes)
  • Spread spikes: breakouts right after news or in thin markets suffer slippage and worse TP/SL geometry
  • Aggressive mode (×2) reaches a 41.3% largest percentage drop (equity DD 12.2%). Choose risk above the default (Ultra = Standard) only with money that can withstand large balance swings
  • Grid adds are same-size and capped at 5, but floating loss can grow to the group-SL distance while holding through a crash
  • The test covers only 7.7 years (2019-2026), mostly a rising gold market. A long stagnation like 2004-2012, when the old version lost in 11 years, has not been tested with the second engine. If such a market returns, long losing streaks and deep drawdowns can occur. Trade only with spare money
The real risk, blow-up triggers, compounding note▾

GOLD VIPER v2.44 is an aggressive gold (XAUUSD) EA with up to five engines. By default v2.44 runs three stop-order engines on one chart: (2) eight always-on strategies that place stop orders at D1/H4 fractal highs and lows, (3) eight more stop-order strategies sized from their own unit balance (on by default), and (4) eight stop-order strategies at daily-chart fractal highs and lows (on by default). v2.42 doubles the lot size of all three (FB_RiskPercent 1.0, GR_LotMult 2.0, G1_RiskPercent 0.5). From v2.43, (5) a multi-timeframe pivot stop-order engine also runs by default, and v2.44 removes the third engine's pending orders around high-impact releases in live trading (tester results are the same as v2.43). The former main engine, (1) the M30 volatility-regime breakout (L32 channel close breakout + EMA trend agreement, ATR-scaled group TP/SL), is off by default from v2.42 and can be switched back on with UseCoreBreakout = true. Exness XAUUSDm 7.7 years (2019-2026), $10,000 compounding: ×416.0 / PF 1.90 (history quality 8%). If you switch the breakout on, its grid uses the same lot up to 5 with a group SL run by the EA (no broker-side SL). No martingale. These results were measured on v2.43; confirm any later Market version and strategy changes before comparing performance.

  • ⚠ Aggressive EA. Even at default settings the largest percentage equity drop reaches about 34%, and about 41% in Aggressive mode. Trade only with money you can afford to lose.
  • If you switch on the breakout engine (off by default from v2.42), its group SL is executed by the EA itself; no SL is placed at the broker. While the EA is stopped or the VPS is disconnected, that stop-loss does not work, so run it in an always-on environment.
  • Withdraw daily, use only spare capital you can afford to lose, keep it under 10% of your portfolio, and prefer a micro (cent) account.
  • If you want a low-drawdown defensive EA, pick one with a low equity drawdown from the EA ranking instead.

Measured results by RunMode (v2.44, Exness 7.7 years)

SettingResult ($10,000 →)Equity DDVerdict
Ultra = Standard (default)$4.2M18.5%+41,504% / PF 1.90 / largest % drop 33.7% / 13,250 trades
Defensive (risk x0.5)$624k10.5%+6,142% / PF 2.01 / largest % drop 19.8% / 13,293 trades
Aggressive (risk x2)$6.6M12.2%+65,878% / PF 1.88 / largest % drop 41.3% / 13,250 trades

All three modes were measured over the same period with the same starting balance. Equity DD is MT5's "maximal drawdown" (% at the largest money drawdown); "largest % drop" in the right column is the deepest decline in percentage terms. Aggressive shows a lower equity DD (12.2%) than the default, but its largest percentage drop, 41.3%, is the deepest of the three modes. In Aggressive mode, quality sizing and the monthly breaker switch off automatically.

MT4 edition (v2.39, measured separately in the MT4 Strategy Tester — every tick generated from Dukascopy M1 data, not real ticks; XAUUSD M30 (100 oz · 1:500) 2019.01–2026.07, spread 16 pips, $10,000 compounding, about 9,700 trades per mode): Defensive +2,550% / PF 1.72 / eqDD 17.7% · Standard (= Ultra) +25,120% / PF 1.60 / eqDD 24.2% · Aggressive +82,865% / PF 1.57 / eqDD 33.7%. The MT4 edition has no USD basket SL/TP or volume-limit clamp and avoids news by an NFP/FOMC/CPI schedule rule.

Compounding = lot scales with balance (volatility-normalized risk%). Multiples are backtest values starting at $10,000 with no withdrawals and do not guarantee future profits.

Parameters (in .mq5 input order, key ones)

ParameterDefaultDescription
EntryLookback32Breakout channel lookback bars (M30)
EntryATR_Multi0.6Breakout margin = ATR x this
TrendEMA_Fast / Slow50 / 200Trend EMAs (fast/slow)
UseTrendFiltertrueRequire trend agreement (robust, recommended)
AllowBuytrueAllow buys (false = sell-only; both engines)
AllowSelltrueAllow sells (false = buy-only; both engines)
MinTrendATR0.5Regime: |EMA gap| >= ATR x this
MinVolRatio1.2Regime: fast ATR / slow ATR >= this
GridDistanceATR1.0Grid spacing = ATR x this
MaxGridCount5Max grid count (same lot)
GroupTP_ATR3.0Group TP = ATR x this
GroupSL_ATR1.5Group SL = ATR x this (executed by the EA; no broker-side SL)
UseTrailExittrueTrail the group past TP instead of a hard TP close (ON by default in v2.11)
TrailActivateATR3.0Start trailing once group profit >= ATR x this (= Group TP)
TrailDistATR0.4Close when group profit retraces ATR x this from its peak
BreakevenATR0.0Lock a breakeven floor once group profit reaches ATR x this (0=off)
UseMonthlyLossStoptrueMonthly loss breaker (v2.12): once the month's realized loss hits the trigger, pause new baskets until next month (open basket still managed)
MonthlyLossStopPct8.0Monthly stop trigger % (defined at Standard risk; Defensive auto-scales x0.5; auto-disabled in Aggressive)
UseRegimeSizingtrueRegime-quality sizing (v2.13): scales lots up only on strong regimes; losing regimes keep the base lot
RegimeSizeSlope / Cap0.75 / 1.5Scale = 0.75 per volRatio above the 1.2 gate, capped at x1.5. Auto-disabled in Aggressive
RiskPercent2.3Risk % per basket (group-SL hit = this % of balance)
FixedBaseBalance0>0 = risk computed on this fixed base (compounding OFF; equals daily-withdrawal operation). 0 = compound on current balance
MaxLotTotal5.0Total lot cap
MaxMarginPercent20Initial-lot margin cap (% of balance)
TradeStartHour / EndHour6 / 20Trading hours (server time)
MaxSpreadPoints100Max spread (points, with ATR-linked dynamic allowance)
EmergencyMarginLevel150Emergency close-all margin level %
RunModeUltra (= Standard ×1.0)Operating mode (Defensive ×0.5 / Standard / Aggressive ×2 / Ultra = default; for this EA Ultra equals Standard ×1.0)
MagicNumber20260602Magic number
FB_RiskPercent1.0Second-engine risk per order, % (loss to the initial SL = this % of balance × RunMode). 0 = FB_FixedLot
FB_MaxLot5.0Second-engine lot cap per order
FB_RunS1 … FB_RunS8trueOn/off for each of the 8 strategies (S2 on H4, the rest on D1)
FB_NfpPausetrueOn NFP days, close and cancel 15:20-19:30 server time and re-place at 19:30
FB_MagicBase2609220Second-engine magic base (uses up to +7; the range must not include MagicNumber)
UseReaperEnginetrueThird engine on/off (8 stop-order strategies, magic 2610020 to 2610027)
GR_LotMult2.0Third engine lot multiplier (1.0 = 0.01-0.05 lots per order on a 1,600 USD unit). Not affected by RunMode
GR_VirtualDeposit1600Unit balance (USD) the third engine's balance tiers start from
UseGoldbotEnginetrueFourth engine on/off (8 daily-fractal stop-order strategies, magic 2610060 to 2610067)
G1_RiskPercent0.5Fourth engine risk % per order (× RunMode, capped at 5 lots)
UseEngineTarantulatrueFifth engine on/off (multi-timeframe pivot stop orders, magic TR_MagicNumber = 20261127)
TR_LotPerBalance0.000001Fifth engine lot per 1 unit of balance (0.01 lot per 10,000). Not affected by RunMode

🛡 It ships set to RunMode = Ultra (for this EA, the same ×1.0 as Standard)

GOLD VIPER's headline figures (PF 1.90 / equity DD 18.5% / 119.6% per year) are measured with the shipped default RunMode = Ultra (for this EA the same ×1.0 as Standard). No further changes are needed. Aggressive (×2.0) grows to +65,878% but deepens the largest percentage drop to 41.3%, and quality sizing and the monthly breaker switch off automatically. For a safer setting, choose Defensive (×0.5, equity DD 10.5%, largest percentage drop 19.8%). RunMode scales the breakout (off by default from v2.42), the fractal engine and the fourth engine; the third engine keeps its own lot size.

Always-on chart panel

Once the EA is on the chart, a panel shows its status at a glance.

EA chart panel
  • Switch the run mode with a button on the chart (no need to reopen the settings)
  • Choose the display language from 11 languages
  • Live P/L, maximum drawdown and EA net profit
  • Open positions with distance to SL

Screens show sample values for illustration.

EA Setup Guide

  1. Copy to the MQL5/Experts folderCopy the .ex5 file to the MQL5/Experts folder inside the MT5 data folder (File > Open Data Folder)
  2. Allow fxea365.com in MT5 WebRequest settingsIn MT5 open Tools → Options → Expert Advisors, tick "Allow WebRequest for listed URL", add https://fxea365.com and press OK. The EA checks your account licence there on start-up; without this it stops with "code=4014"
  3. Attach the EA to a chartOpen the chart for the target currency pair, drag the EA from the Navigator panel onto the chart, check "Allow Algo Trading," and click OK
  4. Turn on the Algo Trading buttonTurn on the "Algo Trading" button (green) in the MT5 toolbar. A smiley face (😊) in the top right of the chart means it is running

How to Set Up an EA in MT5 | From Installation to Operation →

Free download (register your account number)

⭐ Try it free first

✓ Even if we cannot confirm the account was opened through our link (an account you already had, or a demo account), applying activates a 14-day trial right away.

STEP 1 Prepare your account

Using the EA requires an MT5 account opened through our referral link. If you already have an account, please create an additional account.

No account yet — open a new account via the links below

Adding an account — create an additional account in your member pageSee how →

With Exness, an account added inside an existing Personal Area may not be linked to us. The reliable way is to register anew through our link with a different email address.

STEP 2 Register your account number and download (free)

Please check before applying

The free EA is available for MT5 accounts opened through our referral link. When you enter your account number we check the linkage on the spot, and show you how to fix it if it is not confirmed.

Free registration; your account number is used only for EA license activation

Buy the paid version (MQL5 Market, no account registration)

Buy GOLD VIPER EA

Buy on the official MetaQuotes Market (MQL5 Market). Payment, licensing and automatic updates are all handled inside the MT5 app.

Check the MQL5 product listing for current pricing, rental terms and availability.

Buy on MQL5 Market (MT5) →Buy on MQL5 Market (MT4) →

Buy on the official MetaQuotes Market — install directly in MT5 with automatic updates. No account registration needed.

Compare the available free distribution first

The free distribution may have separate eligibility and registration requirements. Review those terms before choosing the MQL5 edition.

Review free-download requirements →

Before you buy

  • Check MT4/MT5 compatibility and the current price on the MQL5 product page.
  • Free-distribution and MQL5 editions may have different license terms; verify before purchase.
  • Backtest results do not guarantee live returns. Review maximum drawdown and the test period.
Review published demo forward tests and update dates →

Frequently asked questions

What is the difference between the free and paid versions?
The free version works once you register the number of an Exness, XMTrading or HFM trading account opened through our referral link. The paid version is a one-time purchase on MQL5 Market and needs no account registration. For some EAs the version or default settings differ between the two (see the version shown on each page).
What happens if I change accounts?
The free version runs only on the account number you registered. To use it on another account, register again with that account number.
Can I backtest it?
Yes. The MT5/MT4 Strategy Tester does not check the account, so you can test on any account type.
Can I use it on a demo account?
No. The free version runs only on the registered live trading account. Use the Strategy Tester to check how it behaves.
What if the EA does not trade?
See "Common problems and fixes" in the setup guide. How to Set Up an EA in MT5 | From Installation to Operation →

Articles about this EA

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

* Privacy strictly protected. You can unsubscribe at any time.