MT4 and MT5 Setup Guide for Automated Gold Trading

Quick Answer

Setting up MT4 or MT5 for automated gold trading takes four steps: install the platform from your broker, download and attach the Expert Advisor file to an XAUUSD chart, enable Algo Trading (or Expert Advisors) in the toolbar, and confirm the EA is live by checking for the green smiley icon and a logged entry in the Experts tab. The whole process usually takes 10-15 minutes on either platform, and a single Golden Viper EA license activates on both MT4 and MT5 without any extra purchase. Get the platform, broker account, and VPS pieces right before you attach anything, and the rest is mostly clicking through a handful of dialog boxes correctly.

If you have never installed an Expert Advisor before, the number of steps can feel intimidating - platform selection, broker linkage, file placement, permission toggles, and verification all have to line up in the right order. This guide walks through the complete automated trading setup for both MetaTrader 4 and MetaTrader 5, with the exact settings, common failure points, and worked examples so you can go from a blank installation to a running EA on a live or demo account without guessing.

MT4 vs MT5: Which Platform Should You Set Up First?

Most traders ask this before they even open an installer, and the honest answer is that it depends on what your broker offers and what you already know. MetaTrader 4 is older, lighter, and still the default platform at many retail brokers because of its simplicity and the enormous library of legacy indicators and EAs built for it. MetaTrader 5 is the newer architecture, with a built-in economic calendar, more order types, a faster strategy tester, and better handling of multiple instruments in one terminal. For gold trading specifically, both platforms execute XAUUSD orders identically at the broker level - the difference is entirely in the terminal software, not in the quality of your fills.

A Golden Viper EA license is not tied to one platform. One purchase covers installation on both MT4 and MT5, so you are not forced to pick a side permanently. Many traders install both terminals side by side: one for live trading and one for testing configuration changes, which also happens to be a clean way to keep a demo account and a funded account separated.

FactorMetaTrader 4 (MT4)MetaTrader 5 (MT5)
Release era2005, still widely supported2010, actively developed
Order execution for XAUUSDMarket and pending ordersMarket, pending, and additional order-filling modes
Strategy tester speedSingle-threaded, slower on long backtestsMulti-threaded, noticeably faster on H4 gold data
Built-in economic calendarNot included nativelyIncluded in the terminal
EA file extension.ex4.ex5
Golden Viper EA licenseSame $199 lifetime licenseSame $199 lifetime license

What You Need Before You Install Anything

Before you touch a single installer, make sure these four pieces are in place. Skipping any of them is the single biggest reason first-time EA setups fail or behave unexpectedly.

1. A Broker Account That Supports EAs

Not every broker allows automated trading, and some restrict it on certain account types. Confirm your broker explicitly permits Expert Advisors before you open a live account, and check that XAUUSD is available as a tradable symbol with reasonable spreads, since spread differences alone can change your effective cost per trade.

2. The Correct Platform Installer From Your Broker

Always download MT4 or MT5 directly from your broker's client portal, not from a generic search result. Broker-branded installers are pre-configured to connect to that broker's servers, which saves you from manually entering server addresses. If you want the vanilla version to explore features first, MetaQuotes documents the installation process directly on the MetaTrader 4 platform help pages and the MetaTrader 5 terminal help pages.

3. A VPS if You Want 24/5 Uptime

An Expert Advisor only trades while the terminal is running and connected to your broker. If your home internet drops or your computer sleeps, the EA stops watching the market until you reconnect. A virtual private server keeps the terminal online around the clock without depending on your own machine. We cover this in detail in setting up a VPS for forex trading.

4. Your EA License Files

Golden Viper EA ships as a compiled file for each platform (.ex4 for MT4, .ex5 for MT5) tied to your account after purchase. Have both files downloaded and ready before you start, along with your login credentials for your broker account, so you are not searching for files mid-setup.

Step-by-Step: Installing MT4

Once MT4 is installed from your broker's link and you have logged in with your account number, server, and password, installing an EA follows a fixed sequence:

  1. Open MT4 and go to File, then Open Data Folder. This opens the folder where the platform stores everything specific to your installation, separate from the program files.
  2. Navigate to MQL4, then Experts. Copy the Golden Viper EA .ex4 file into this folder.
  3. Close and reopen MT4 completely (a simple refresh of the Navigator panel is not always enough to register a new file).
  4. In the Navigator panel on the left, expand Expert Advisors. Golden Viper EA should now appear in the list.
  5. Open an XAUUSD chart and set the timeframe to H4, since that is the timeframe the strategy is designed to operate on.
  6. Drag the EA from the Navigator panel onto the chart. A settings window opens automatically.
  7. In the settings window, go to the Common tab and check "Allow live trading." Adjust your risk mode and lot sizing on the Inputs tab, covered in detail below.
  8. Click OK. If Algo Trading is enabled in the toolbar (see the section below), a green smiley face appears in the top-right corner of the chart, confirming the EA is active.

Step-by-Step: Installing MT5

The MT5 process mirrors MT4 closely, with a few naming differences worth knowing so you are not confused when a menu label doesn't match what you expected from MT4:

  1. Open MT5 and go to File, then Open Data Folder, exactly as in MT4.
  2. Navigate to MQL5, then Experts (note: MQL5, not MQL4). Copy the Golden Viper EA .ex5 file here.
  3. Restart MT5 so the new EA registers in the Navigator panel.
  4. Open an XAUUSD chart, set the timeframe to H4, and expand Expert Advisors in the Navigator panel to confirm the EA appears.
  5. Drag the EA onto the chart. In the resulting dialog, check "Allow Algo Trading" on the Common tab (MT5's label for what MT4 calls "Allow live trading").
  6. Set your risk mode and lot sizing preferences on the Inputs tab.
  7. Click OK. Confirm the Algo Trading button in the main toolbar is toggled on (it turns green), and check for the smiley icon on the chart.

The MQL5 reference for programmatic details behind the Expert Advisor permission model lives in the MQL5 documentation.

Enabling Algo Trading: The Step Everyone Forgets

The most common reason a correctly installed EA does nothing is that Algo Trading (called "AutoTrading" in older MT4 builds) is switched off at the platform level. This is a global toggle in the toolbar, separate from the per-chart "Allow live trading" checkbox in the EA's own settings. Both switches must be on simultaneously:

  • Global toggle: the Algo Trading / AutoTrading button in the main toolbar, which affects every chart and every EA in the terminal at once.
  • Per-EA toggle: the "Allow live trading" or "Allow Algo Trading" checkbox inside each EA's own input settings, which affects only that specific chart attachment.

If either one is off, the EA sits inert with a red or gray icon instead of the green smiley, and no trades execute even though everything looks installed correctly. This single detail accounts for a large share of "my EA isn't trading" support questions, and it is worth a second visual check every time you restart the terminal, since some brokers or Windows updates reset the toggle to off.

It helps to know, in plain terms, what happens once both toggles are on. The Expert Advisor runs as compiled code inside your MetaTrader terminal, evaluating the XAUUSD H4 chart on every new price tick or bar close, depending on how it's coded. When its internal rules identify a qualifying setup, it sends an order request to your broker through the terminal's connection - the same connection your manual trades would use. Golden Viper EA uses a rules-based trend and momentum confirmation approach rather than martingale, grid, or averaging methods, and it applies a profit-lock mechanism on winning trades along with an optional safety stop, all calculated from your chosen risk mode. None of this requires you to understand the underlying code; it only requires the platform to be running, connected, and correctly configured.

Configuring Risk Mode, Lot Sizing, and Magic Numbers

Once Golden Viper EA is attached and Algo Trading is confirmed on, the inputs that matter most are the risk mode and lot sizing method. The EA offers three risk modes, and each one changes how aggressively position size scales with your account balance.

Risk ModeTypical Use CaseRelative Position Sizing
ConservativeSmaller accounts, first-time users, capital preservation focusLowest risk-per-trade multiplier
NormalStandard use once you're comfortable with the EA's behaviorModerate risk-per-trade multiplier
AggressiveLarger accounts or traders deliberately targeting faster growthHighest risk-per-trade multiplier

Lot sizing is risk-based rather than fixed, meaning the EA calculates position size from your account balance and the selected risk mode rather than trading a static lot value regardless of account size. For example, on a $2,000 account in Conservative mode, the calculated position per trade will be smaller in absolute terms than the same mode applied to a $10,000 account, but the risk-per-trade percentage stays consistent across both. This is the same core principle covered in Investopedia's overview of risk management: sizing trades relative to account equity rather than trading a fixed lot regardless of balance.

Before committing real capital to a new risk mode, it helps to understand how the EA has performed historically at each setting. Running your own backtest on the strategy tester lets you see simulated drawdown and trade frequency at each risk level before you ever place a live order. Our step-by-step guides for backtesting an EA on MT4 and backtesting an EA on MT5 cover exactly how to load historical XAUUSD data and run the test correctly, since a backtest with poor-quality tick data will give misleading results regardless of the strategy behind it.

Magic Numbers for Multiple EA Setups

If you plan to run more than one Expert Advisor in the same terminal, or run Golden Viper EA on both a demo and a live account side by side for comparison, you need to understand magic numbers. A magic number is an identifying tag attached to every order an EA places, which lets the platform (and the EA itself) distinguish its own trades from manual trades or trades placed by a different EA on the same account. Without correctly managed magic numbers, two EAs trading the same symbol can interfere with each other's position management logic. Our dedicated explainer on EA magic numbers walks through how to check and set them if you're running Golden Viper EA alongside another strategy, or want to isolate multiple instances of the same EA across different charts for testing purposes.

Verifying Your Setup: Myfxbook and a Worked Example

Once your EA is live, connecting the account to a third-party verification service is one of the most useful things you can do, both for your own record-keeping and for building an honest, checkable track record. Myfxbook pulls trade history directly from your broker statement via a read-only investor password, so the resulting equity curve and statistics cannot be edited or faked after the fact. This is the same verification standard used for Golden Viper EA's own published track record, and Myfxbook explains exactly how the verification process works and what it does and doesn't prove.

The setup itself takes about five minutes: create a free Myfxbook account, add your broker account using the investor (read-only) password rather than your full trading password, and the platform begins syncing your trade history automatically. Our full walkthrough in connecting MT4 to Myfxbook covers where to find your investor password and how to troubleshoot a sync that isn't updating. Beyond Myfxbook, an MQL5 signal subscription (available separately for the EA at $30/month) is another way to mirror trades and monitor performance through the MQL5 signals service, which some traders prefer because it runs through the same ecosystem as the MQL5 Market itself.

A Worked Example: From Blank Terminal to Live Trade

To make the process concrete, here's a realistic walkthrough of what setup looks like end to end for a trader starting with a $5,000 account.

You download MT5 from your broker's client portal and log in with your live account credentials. You open the data folder, copy the Golden Viper EA .ex5 file into MQL5/Experts, and restart the terminal. You open a new XAUUSD chart, switch it to the H4 timeframe, and drag the EA onto the chart from the Navigator panel. In the Common tab, you check "Allow Algo Trading." In the Inputs tab, you select Normal risk mode, since Conservative felt too slow in your backtest and Aggressive showed drawdown swings larger than you were comfortable holding. You click OK, then check the toolbar to confirm the Algo Trading button is green. The chart now shows a small smiley icon in the corner.

You leave the terminal running on a VPS rather than your laptop, so the EA keeps working even when you're offline. Because the strategy places roughly one trade per day at most, you don't see activity immediately - the EA is selective by design, waiting for its full set of confirmation conditions on the H4 chart rather than trading every signal it sees. Over the following weeks, you connect the account to Myfxbook using your investor password, and you check the Experts tab periodically to confirm the EA is still logging activity and hasn't hit a connection error. That's the entire operational loop: install once, verify the toggles are on, and monitor rather than intervene.

Common Setup Mistakes and How to Fix Them

Most setup problems fall into a short list of repeat offenders. Before assuming something is broken, run through this checklist.

SymptomLikely CauseFix
No smiley icon on chartAlgo Trading toggle off in toolbar, or "Allow live trading" unchecked in EA settingsEnable both toggles; restart the terminal if the button doesn't respond
EA appears in Navigator but chart shows an error iconWrong file for the platform (.ex4 on MT5 or .ex5 on MT4), or file placed in wrong folderConfirm .ex4 files are in MQL4/Experts and .ex5 files are in MQL5/Experts
No trades after several daysStrategy is selective by design and waiting for a qualifying setupCheck the Experts and Journal tabs for logged activity rather than assuming it's inactive
EA stops trading after closing laptopTerminal only trades while connected and runningMove the terminal to a VPS for continuous uptime
Two EAs seem to conflict on the same symbolOverlapping or default magic numbersAssign distinct magic numbers per EA instance
Backtest results don't match live behaviorLow-quality or incomplete historical tick dataUse broker-supplied history and confirm data quality before trusting the test

If you run into a symptom not covered by the checklist above, our broader troubleshooting reference on common EA problems and fixes covers additional platform-level and connectivity issues that occasionally show up on either MT4 or MT5.

Spotting a Bad Setup Guide or a Scam EA Seller

Because automated trading attracts scammers alongside legitimate products, it's worth knowing what red flags to watch for while you shop for an EA or a "setup service." The CFTC's forex fraud resources flag common warning signs: guaranteed returns, pressure to buy immediately, and unverifiable performance claims. The FTC's guide to investment scams adds another useful test - if a seller can't show you a verifiable, third-party-audited track record (not a screenshot they control), treat the claim as unproven. A legitimate EA setup process never requires you to hand over your full trading password to a third party and never guarantees a specific monthly return.

Monitoring After Setup: What to Check and How Often

Setup isn't a one-time event you forget about. A reasonable monitoring routine looks like this: check the Experts and Journal tabs in your terminal at least a few times a week for connection errors or unexpected messages, glance at your Myfxbook-linked account weekly to review equity curve trends, and revisit your VPS provider's dashboard occasionally to confirm uptime. Pay particular attention to drawdown, which Investopedia defines in its explainer on drawdown as the decline from a peak to a trough in account equity - understanding your own drawdown tolerance before you start is far more useful than reacting to it emotionally after a losing stretch.

If you ever want a full understanding of every adjustable input rather than just risk mode and lot sizing, the complete settings reference in understanding EA settings documents each parameter Golden Viper EA exposes, what it controls, and reasonable ranges to consider. Combined with the setup steps in this guide, that reference should cover essentially any configuration question that comes up after your first live trade.

A Short, Honest Risk Disclosure

Trading gold, whether manually or through an Expert Advisor, carries real risk. Losses are possible, past performance shown on any verified track record does not guarantee future results, and no setup process or risk mode eliminates the possibility of a losing streak. Only ever trade with capital you can genuinely afford to lose, and treat any of the platform toggles, risk modes, and monitoring steps in this guide as tools for managing risk deliberately, not as a substitute for understanding that risk exists. If you want to see the product itself before installing anything, the Golden Viper EA homepage has the current license terms and verified track record links.

Frequently Asked Questions

Do I need to buy separate licenses for MT4 and MT5?

No. A single Golden Viper EA purchase is a one-time $199 lifetime license that covers installation on both MT4 and MT5, so you can run it on whichever platform your broker supports, or both, without an additional fee.

Why doesn't the EA show a green smiley after I attach it to the chart?

This almost always means one of two toggles is off: the global Algo Trading button in the toolbar, or the "Allow live trading" / "Allow Algo Trading" checkbox inside the EA's own settings window. Both need to be enabled at the same time.

Can I run the EA on a demo account first?

Yes, and it's a sensible way to confirm your installation and settings are correct before committing real capital. The setup steps are identical for demo and live accounts - only the account credentials differ.

What timeframe should my XAUUSD chart be set to?

H4. The EA is built specifically for the four-hour chart, and attaching it to a chart on a different timeframe will not change the timeframe the strategy actually evaluates internally.

Does the EA need my computer running all the time?

The EA only trades while the terminal is open and connected. If you want continuous, 24/5 uptime without keeping your own computer on, a VPS keeps the terminal running independently of your local machine.

How do I know the EA is actually working if I don't see trades right away?

Check the Experts and Journal tabs in your terminal for logged activity, and remember the strategy is selective by design, targeting roughly one qualifying setup per day at most rather than trading continuously.

Is it safe to give a verification service like Myfxbook my account password?

Use your broker's read-only investor password for Myfxbook, never your full trading password. The investor password allows statement viewing only and cannot place trades or withdraw funds, which is the whole point of that separate credential.

What's the difference between the EA and the MQL5 signal option?

The EA runs directly in your own MT4 or MT5 terminal under your control for a one-time $199 lifetime fee. The MQL5 signal, at $30/month, mirrors trades from a published signal account into your terminal instead, which some traders prefer if they want less direct file management.

Can I run the EA alongside other Expert Advisors in the same terminal?

Yes, as long as each EA has a distinct magic number so the platform and each strategy can tell their own orders apart from each other's. Running multiple EAs with overlapping default magic numbers on the same symbol can cause conflicting order management.

What should I do if setup still isn't working after following these steps?

Work through the troubleshooting table in this guide first - most issues trace back to the Algo Trading toggle, a misplaced file, or a platform/file mismatch. For less common connectivity or error-message issues, our common EA problems and fixes guide covers additional scenarios in more depth.

Myfxbook Verified

Automate Your MT4/MT5 Edge

+€1,485Net · 6-mo (verified)
56%Win Rate (51/91)
24/5Automated
Starting at $199 one-time
Get Lifetime Access →
✓ Instant download✓ Full feature access✓ MT4 & MT5 compatible
DC

Daniel Cole

Daniel Cole writes about MetaTrader 4/5, Expert Advisors, and automated XAUUSD gold trading for Golden Viper EA.

Myfxbook VerifiedLive since Jan 2026Public track record

Let Golden Viper EA trade gold for you

Automated XAUUSD trading for MT4 & MT5, verified live on Myfxbook. One-time $199, lifetime access.

Get Lifetime Access — $199