0
9
This guide covers installation, run modes, ready-made set files and common questions for FXEA365 Gold Viper Breakout on MetaTrader 5. Gold Viper trades XAUUSD on one M30 chart. The main engine enters on a breakout of the last 32 closed bars plus an ATR margin, filtered by a 50/200 EMA trend filter and a volatility filter, and closes each basket as one group with an ATR-based profit target, a trailing exit and an ATR-based group stop-loss. Next to it run stop-order engines: a D1/H4 fractal stop-order engine that is always on, and two more that can be switched off with UseReaperEngine and UseGoldbotEngine. Figures in this guide are as of 2026-11-09.
Installation and first run
1. Open one XAUUSD chart (GOLD and XAUUSDm also work) and set it to M30. On any other timeframe the EA places no trades.
2. Drag the EA onto the chart and allow algorithmic trading in the Common tab.
3. Before you enable Algo Trading, check RunMode, RiskPercent and MaxLotTotal.
4. Turn on Algo Trading in the terminal toolbar.
5. A hedging account is the intended setup; on a netting account the EA prints a warning in the Experts log.
6. The breakout basket's group stop-loss is executed by the EA itself, so it protects only while the EA is running. A VPS is one option. The fractal stop-order strategies send their stop loss and take-profit to the broker server with every order.
7. The stop-order engines keep many pending orders open at once (up to 58 in the long test), so the account must allow at least 70 simultaneous orders. Check this limit with your broker.
Minimum deposit and leverage
- $1,000 or more (a cent/micro account works for smaller balances).
- Leverage 1:200 or higher.
Run modes
Long test: v2.39, Exness XAUUSDm M30 tick history (history quality 8%, not a 100% real-tick test), 2019.01-2026.09 (7.7 years), $10,000, leverage 1:500, compounding, RunMode the only input changed. Backtests are historical simulations, not a live record, and do not indicate future performance.
- Defensive (risk x0.5): +2,616%, profit factor 1.79, equity drawdown 17.5% (relative balance 14.7%), 10,348 trades, win rate 56.5%. The best profit factor of the four modes in the long test.
- Standard: +19,565%, profit factor 1.64, equity drawdown 24.1% (relative balance 21.2%, relative equity 30.3%), 10,340 trades.
- Aggressive (risk x2.0): +100,746%, profit factor 1.59, equity drawdown 32.3% (relative balance 28.7%). The profit factor does not improve over Standard, and the largest single loss is about 7 times larger. The monthly loss stop is off in this mode.
- Ultra: same risk as Standard, so the Standard figures apply (equity drawdown 24.1%).
The forward test runs on an Exness demo account with default settings (not real money) since 2026-07-25: +1.95% net, maximum drawdown 10.9%, 94 closed trades, profit factor 1.14 as of 2026-10-31. Three months is too short to confirm anything.
Set files
The run mode is chosen with the RunMode input (an enum). Each set changes only the run mode; all other inputs stay at their defaults (for example RiskPercent=2.3 and MaxLotTotal=5.0).
Defensive
; RunMode 0 = MODE_DEFENSIVE
RunMode=0
Copy these lines into a text file named GoldViper_Defensive.set, save it in MQL5\Presets, then load it in the EA's Inputs tab with Load.
Standard
; RunMode 1 = MODE_STANDARD
RunMode=1
Copy these lines into a text file named GoldViper_Standard.set, save it in MQL5\Presets, then load it in the EA's Inputs tab with Load.
Aggressive
; RunMode 2 = MODE_AGGRESSIVE
RunMode=2
Copy these lines into a text file named GoldViper_Aggressive.set, save it in MQL5\Presets, then load it in the EA's Inputs tab with Load.
Ultra (same risk as Standard)
; RunMode 3 = MODE_ULTRA
RunMode=3
Copy these lines into a text file named GoldViper_Ultra.set, save it in MQL5\Presets, then load it in the EA's Inputs tab with Load.
Prop firm (Defensive with all other inputs at their defaults, the lowest-risk mode measured above: equity drawdown 17.5%)
; RunMode 0 = MODE_DEFENSIVE
RunMode=0
Copy these lines into a text file named GoldViper_PropFirm.set, save it in MQL5\Presets, then load it in the EA's Inputs tab with Load.
Compare the 17.5% figure with your firm's loss rules before you start.
FAQ
Q: Which chart should I attach it to?
A: One XAUUSD M30 chart. Check the symbol name, contract size, spread and trading permissions with your broker.
Q: Does it use martingale or grid?
A: No martingale. After an adverse move of 1 ATR the breakout engine can add a position of the same lot size, up to 5 positions in one basket, and the whole basket is capped by its group stop-loss. This is not lot doubling, but total exposure grows and a losing basket loses more.
Q: What is the smallest account that makes sense?
A: $1,000 or more with leverage 1:200 or higher. A cent/micro account works for smaller balances.
Q: Can I use it on a prop-firm account?
A: Use the prop-firm set above (Defensive) and compare its 17.5% equity drawdown with your firm's rules first.
Q: Does it need a VPS?
A: The breakout basket's group stop-loss works only while the EA is running, so the terminal must stay connected. A VPS is one way to do that. Note that no stop protects against slippage, price gaps or broker execution problems.
Q: My broker calls the symbol XAUUSDm or GOLD. Does it work?
A: Yes. The EA recognises gold symbols by name, so suffixes are accepted.
Q: What about news?
A: An economic event filter is built in and on by default (EconFilter_Enable=true). It uses the MetaTrader 5 economic calendar.
Q: How do I check it in the Strategy Tester before buying?
A: Run the free demo with "Every tick based on real ticks" on XAUUSD M30, over several years with different market phases, using your broker's spreads. Results change with the broker, version, RunMode and test period.
Q: What should I do during a drawdown?
A: The monthly loss stop halts new baskets after a realized loss of 8% in a month (at Standard) until the next month, and all positions are closed if the margin level falls to 150%. Compare the drawdown with the figure for your mode, and do not move to Aggressive to recover losses: in the long test, Aggressive did not improve the profit factor and deepened the equity drawdown (32.3% against 24.1% at Standard), while Defensive had the best profit factor at an equity drawdown of 17.5%.
Q: How do updates work?
A: Updates arrive through the MQL5 Market. After an update, check RunMode, RiskPercent and MaxLotTotal again before you enable Algo Trading.
Risk warning
This EA places real orders and can lose money, and it is not suitable for traders who cannot accept large drawdowns. Backtests are historical simulations and do not indicate future performance. Try it on a demo account first, start with Defensive or Standard, and trade only money you can afford to lose.


