How to Set MT5 Expert Properties for a Gold Trading EA

Quick Answer

To set MT5 expert properties for a gold trading EA, attach the robot to an XAUUSD chart, open the Common tab and enable "Allow Algo Trading" plus "Allow live trading," set a realistic slippage/deviation value in the Inputs tab, confirm your account's default lot step and margin requirements, and match the EA's magic number and risk mode to your account size before you press OK. Golden Viper EA, for example, only needs its risk mode, lot-sizing method, and magic number confirmed because trade logic and timeframe are already fixed to XAUUSD on H4. Getting these properties wrong is the single most common reason a gold EA fails to place trades, over-leverages an account, or gets rejected by the broker's server, so each field deserves a deliberate check rather than a default click-through.

Gold is one of the least forgiving instruments to run an automated strategy on. A single XAUUSD point can be worth several dollars per lot, spreads widen fast around economic releases, and a mis-set deviation or lot-sizing field can turn a disciplined strategy into an oversized bet in minutes. The MetaTrader 5 "Expert properties" window - the dialog that opens automatically when you drag an Expert Advisor onto a chart - is where you control exactly how that EA is allowed to behave on your account. This guide walks through every tab and field that matters for a gold-focused EA, with worked numeric examples so you can see the real dollar impact of each setting rather than just guessing at defaults.

What MT5 Expert Properties Actually Control

When you double-click or drag an Expert Advisor onto a chart in MetaTrader 5, the terminal opens a properties window with several tabs: Common, Inputs, and (depending on the build) Dependencies. This is not cosmetic configuration - it is the permission layer between the EA's code and your live account. The Common tab governs whether the robot can trade at all, how much price slippage it will tolerate, and whether it can import external libraries. The Inputs tab exposes the parameters the EA's developer chose to make adjustable, such as risk percentage, lot-sizing mode, or a magic number for trade identification.

For a gold EA specifically, these settings interact with XAUUSD's unusual volatility profile. A stock-index EA might tolerate 50 points of slippage without issue; on gold, 50 points during a Federal Reserve announcement can represent a meaningfully different fill price. Understanding what each field does - not just accepting the default - is the difference between an EA that trades as designed and one that either never fires or fires with the wrong exposure. If you are new to EA configuration generally, it helps to first review the fundamentals in a guide to understanding EA settings before tackling gold-specific nuances covered here.

The platform vendor's own documentation on automated trading in MetaTrader 5 confirms that these permissions exist specifically to prevent a robot from executing trades a trader has not explicitly authorized - so treat the properties window as a safety gate, not a formality to click through.

The Common Tab: Trading Permissions and Slippage

The Common tab is the first thing you see when the properties window opens, and it holds the settings most traders skip past too quickly. Four fields matter most for a gold EA:

Common Tab FieldWhat It DoesRecommended Setting for XAUUSD EAs
Allow Algo TradingMaster switch permitting the specific EA instance to send ordersEnabled (checked) - without it, the EA runs but never trades
Allow live tradingConfirms the EA can trade on the live/real account, not only in the testerEnabled only after you have verified inputs on a demo account first
Allow DLL importsPermits the EA to call external Windows librariesLeave disabled unless the EA vendor explicitly documents a required DLL
Maximum deviation (slippage), pointsThe maximum adverse price movement the EA will accept between signal and fill20-40 points for XAUUSD on major brokers; higher only on wide-spread accounts

The maximum deviation field deserves special attention on gold. If you set it too tight - say, 5 points - the EA may reject valid entries during normal volatility, and you will see missed trades in your journal with no obvious cause. Set it too loose, and the robot may accept fills 100+ points away from the signal price during a news spike, which on a 1.00-lot XAUUSD position (where each point is typically worth about $1) can mean a materially worse entry than intended. A deviation of roughly 20-40 points is a reasonable middle ground for most brokers under normal conditions; you can find your broker's typical XAUUSD spread behavior discussed in more detail in a comparison of broker spreads for gold trading.

The MetaTrader terminal's own help documentation walks through each of these Common tab controls in the official MetaTrader 5 terminal help section, which is worth bookmarking the first time you configure any new EA.

The Inputs Tab: Configuring EA-Specific Parameters

The Inputs tab is where the EA developer exposes the parameters you are meant to adjust - everything from lot size and risk percentage to magic numbers and take-profit style. Unlike the Common tab, which is standardized across every EA in MT5, the Inputs tab is entirely custom to the robot you are running. This is also where the MQL5 documentation on input variables is useful background if you want to understand how developers structure these settings programmatically.

For Golden Viper EA specifically, the Inputs tab is intentionally short. Because the strategy and timeframe (XAUUSD on H4) are fixed by design, you are not asked to configure entry logic, indicator periods, or session filters - there is nothing to misconfigure there. Instead, the exposed inputs concentrate on account-level risk controls:

  • Risk mode - a choice between Conservative, Normal, and Aggressive, which scales position sizing relative to account equity.
  • Lot-sizing method - risk-based sizing that calculates lot size from your account balance and the trade's stop distance, rather than a fixed lot value.
  • Magic number - a unique identifier so the EA's trades can be distinguished from manual trades or other EAs on the same account.
  • Optional safety stop - an additional protective level you can enable alongside the EA's built-in profit-lock behavior on winning trades.

Because the EA uses risk-based lot sizing rather than a fixed lot input, the single most important number you enter here is your risk mode and, indirectly, your account balance. A $2,000 account on Aggressive mode and a $20,000 account on Conservative mode will produce very different position sizes for the same signal - which is exactly the point of risk-based sizing. If you want a deeper walkthrough of how position sizing interacts with account risk generally, Investopedia's overview of risk management is a solid primer on the underlying principles.

Magic Numbers: Why This Field Is Not Optional

A magic number is a unique integer attached to every order an EA places, letting the terminal (and you) distinguish that EA's trades from anything else happening on the account. If you run only one EA on one account, the default magic number rarely causes problems. But the moment you run a gold EA alongside a second strategy, or alongside manual trades, an unset or duplicated magic number becomes a real liability: two EAs sharing a magic number can end up modifying or closing each other's positions, and your equity reports become impossible to attribute correctly.

Set a distinct magic number for each EA instance you run, write it down alongside the account number, and never reuse it for a different chart or symbol. This becomes especially important once you run more than one automated strategy on the same account, since overlapping magic numbers at that point can silently corrupt your trade history. For a full breakdown of how magic numbers work under the hood and common numbering conventions, see the dedicated guide on EA magic numbers.

Risk Settings: Lot Sizing, Risk Modes, and Worked Examples

Risk-based lot sizing means the EA calculates position size from three inputs: your account equity, the chosen risk mode, and the stop distance on the specific setup. This is meaningfully different from a fixed-lot EA, where you type "0.10" and every trade uses that size regardless of account growth or drawdown. Here is a worked example using approximate, illustrative figures to show how the same signal produces different exposure across risk modes:

Risk ModeApprox. Risk per Trade$10,000 Account: Illustrative Lot Size$25,000 Account: Illustrative Lot Size
Conservative~0.5% of equity~0.05 lots~0.12 lots
Normal~1.0% of equity~0.10 lots~0.25 lots
Aggressive~2.0% of equity~0.20 lots~0.50 lots

These figures are illustrative only - the actual stop distance on any given XAUUSD setup, and therefore the exact lot size, varies trade to trade because it is calculated from current market conditions, not a fixed pip value. The point of the table is to show the relationship: doubling your account size roughly doubles position size at the same risk mode, and moving from Conservative to Aggressive roughly quadruples risk per trade for the same account. Before choosing Aggressive mode on a live account, it is worth reading a plain explanation of what drawdown means and how it compounds, since higher per-trade risk directly increases the size of losing streaks. Our own breakdown of how drawdown is calculated and why it matters walks through the same math with gold-specific examples.

A reasonable starting discipline is to run Conservative mode until you have observed at least a full quarter of live results on your own account, cross-checked against a publicly verified track record, before considering a more aggressive setting.

Timeframe and Chart Setup for a Gold H4 Strategy

One property that trips up new users is chart timeframe. MT5 Expert Advisors execute their logic based on the timeframe of the chart they are attached to, not a setting buried in the Inputs tab (unless the EA is explicitly coded to reference other timeframes internally). For an EA built around H4 XAUUSD analysis, attaching it to an M15 or H1 chart instead will not make it trade more often - it may simply cause the strategy's internal logic to evaluate against the wrong bar structure, which can produce unpredictable behavior.

Before you enable live trading, confirm three things on the chart itself: the symbol reads exactly "XAUUSD" (or your broker's equivalent naming, such as "XAUUSD.a" or "GOLD"), the timeframe is set to H4, and the chart has enough historical bars loaded for the EA to calculate its indicators correctly on the first tick. A gold EA that is deliberately selective - producing roughly one qualifying setup per day at most - depends on evaluating complete H4 candles, so an improperly loaded chart history can cause it to skip a valid signal on the first day it runs.

Broker and Symbol Settings: Spreads, Slippage, and Point Value

Gold's point value and typical spread vary meaningfully between brokers, and this directly affects how you should set deviation and interpret your EA's results. On many ECN-style accounts, XAUUSD spreads run roughly 15-35 cents under normal conditions and widen substantially around high-impact news. On a standard lot (100 oz), each $0.01 move in gold is worth $1, so a spread of $0.30 already represents a real cost before the EA's edge has a chance to work. Before going live, open the symbol specification window for XAUUSD (right-click the symbol in Market Watch and select Specification) and note four values: the point value and contract size, the typical and maximum spread, the minimum and maximum lot size with its step, and the margin requirement per lot - all four factor into whether your EA's calculated lot size is actually executable and adequately margined on your specific account.

Every broker sets these values slightly differently, which is why the same Inputs-tab settings can behave differently across two accounts. If you have not yet chosen a broker for automated gold trading, compare spread and execution quality specifically for XAUUSD before assuming any two brokers will produce the same live results from identical properties.

Testing Your Properties Before Going Live

MT5's Strategy Tester lets you validate your Common and Inputs tab settings against historical data before risking real capital. This step is not optional diligence - it is the only way to confirm your deviation, risk mode, and magic number produce the behavior you expect, using the exact build of the platform and the exact EA file you plan to run live.

Run at least two passes: one on your intended risk mode with default deviation, and a second with a deliberately tighter deviation to see how sensitive results are to fill quality. Compare the number of trades taken, not just the equity curve - if your live forward-testing later shows meaningfully fewer trades than backtesting suggested, an overly tight deviation or a misconfigured Common tab permission is often the cause. For step-by-step mechanics of running these tests correctly, see the dedicated walkthrough on how to backtest an EA in MT5, which covers data quality and modeling settings that affect how trustworthy your test results are.

Once you move to live or demo forward-testing, connect your account to a third-party verification service so your actual results - not a backtest - become the record you evaluate the EA against. Golden Viper EA's own live results are published this way on Myfxbook account 11943038, and understanding how that verification process works is useful context: see Myfxbook's verification knowledge base for how connected accounts are validated. A signal you can inspect directly is also published on MQL5's signals marketplace, which lets you review real trade history rather than a simulated curve.

Common Mistakes When Setting MT5 Expert Properties for Gold EAs

Most support requests around a misbehaving gold EA trace back to one of a small number of configuration errors rather than the strategy itself. The table below lists the ones that come up most often, cross-referenced against the property that causes each.

MistakeProperty InvolvedTypical Symptom
Forgetting to enable Algo Trading globally (toolbar button) and per-EACommon tab / terminal toolbarEA loads with a smiley icon but never places a trade
Attaching the EA to the wrong timeframe chartChart timeframe, not an Inputs fieldErratic or absent signals despite correct Inputs settings
Setting deviation far too low for gold's volatilityCommon tab - Maximum deviationTrades rejected with a "requote" or "no prices" error
Running two EAs with the same magic numberInputs tab - Magic numberPositions closing unexpectedly or being double-managed
Choosing Aggressive risk mode without sizing to account equityInputs tab - Risk modeDrawdowns that feel disproportionate to expectations
Not verifying symbol suffix (e.g., XAUUSD vs. XAUUSD.a)Chart symbolEA attached to a dead or unrelated chart, producing zero activity

If you run into a symptom not covered by these settings, the broader troubleshooting reference at common EA problems and fixes covers additional platform-level causes, from terminal connectivity to server-side restrictions, that sit outside the properties window itself.

It is also worth being alert to a different category of "configuration" issue: vendors who claim their EA cannot lose because of a special properties setting, or who pressure you to disable safety features to "unlock" performance. The CFTC's advisory on trading system fraud specifically warns against systems marketed with guaranteed-return language, and the FTC's guide to investment scams lists exactly this kind of pressure as a red flag. No legitimate properties setting removes market risk from an EA.

VPS, Always-On Trading, and Keeping Properties Consistent

Because a gold EA on H4 only needs to evaluate a handful of bar closes per day, it does not require the terminal to run every second of every trading day the way a scalping system might - but it does need to be online and connected at the specific candle closes it evaluates. Running MT5 on a local desktop that sleeps overnight, or that loses connectivity during a broker maintenance window, means the EA can silently miss the one setup it was waiting for that day.

Most traders running any XAUUSD EA long-term move to a low-latency VPS close to their broker's server, both for uptime and to keep execution slippage closer to what backtests assumed. When you migrate to a VPS, re-verify every property discussed above - Algo Trading permission, deviation, risk mode, and magic number - since a fresh terminal installation does not carry over your previous chart's settings automatically. The setup process is covered in detail in the guide to choosing a VPS for forex EA trading, which includes a properties re-check step specifically to avoid this gap.

You can review Golden Viper EA's current specifications, licensing terms, and platform coverage directly on the product page, and background on the team and verification approach is available on the about page.

A Short Risk Disclosure

Trading gold, forex, and other leveraged instruments carries a real risk of loss, and no combination of MT5 properties, risk mode, or lot-sizing method eliminates that risk. Past performance, including any publicly verified track record, does not guarantee future results. Only trade with capital you can genuinely afford to lose, and treat every setting discussed in this article as a way to manage risk more precisely - not as a substitute for understanding it.

Frequently Asked Questions

Where exactly do I find the Expert properties window in MT5?

Drag the EA from the Navigator panel onto the chart of the symbol you want it to trade, and the properties window opens automatically with the Common and Inputs tabs. You can reopen it any time by right-clicking the EA's name in the top-right corner of the chart and selecting "Properties," or by double-clicking the EA in the Navigator while the correct chart is active.

Do I need to change the timeframe every time I reattach the EA?

Yes. The timeframe is a property of the chart, not something saved inside the EA's Inputs. If you close and reopen the chart, or attach the EA to a new chart window, confirm the timeframe matches what the strategy expects (H4 for a gold H4 strategy) before enabling live trading again.

What deviation (slippage) value should I use for a gold EA?

Most XAUUSD EAs on major ECN-style brokers work well with a maximum deviation of roughly 20-40 points under normal market conditions. If your broker consistently shows wider spreads, or you trade through news events, a slightly higher value reduces rejected orders, but you should weigh that against the worse average fill price it allows.

Why did my EA load successfully but never place a single trade?

This is almost always a Common tab issue: either "Allow Algo Trading" is unchecked for that specific chart, or the global Algo Trading toggle in the terminal toolbar is switched off. Both must be enabled simultaneously. It can also happen if the EA is deliberately selective and simply has not yet seen a qualifying setup - check your trading log before assuming it is broken.

Can I run Golden Viper EA on both MT4 and MT5 with the same purchase?

Yes. A single Golden Viper EA license is a one-time $199 lifetime purchase that covers both the MT4 and MT5 versions, with no subscription and no recurring fee. There is also a separate $30/month copy-signal option through MQL5 for traders who prefer to mirror trades rather than run the EA file directly.

What is the difference between Conservative, Normal, and Aggressive risk mode?

The three modes scale position size relative to your account equity and the stop distance on each setup, with Conservative sizing the smallest and Aggressive sizing the largest for an equivalent trade. None of them use martingale, grid, or averaging techniques to increase size after a loss - each trade's size is calculated independently based on current equity.

Should I enable "Allow DLL imports" for a gold EA?

Only if the EA's own documentation explicitly states it requires a DLL. Enabling DLL imports without a documented need widens the EA's access to your system unnecessarily and is not required for standard risk-based, indicator-driven strategies like a rules-based XAUUSD approach.

How do I know if my magic number is causing a problem?

If you notice positions closing or modifying without a corresponding EA log entry, or if your account statement shows trades you cannot attribute to a specific strategy, check whether two EAs (or an EA and a manual trade script) share the same magic number. Each EA instance should have its own unique value.

Does changing risk mode require reattaching the EA to the chart?

No. Risk mode and other Inputs-tab parameters can typically be changed by reopening the EA's properties window and adjusting the value, then clicking OK - the EA does not need to be removed and reattached. The Common tab permissions behave the same way.

Is there a way to verify an EA's real performance before trusting its default properties?

Look for a live, independently verified track record rather than a vendor-supplied backtest. Services such as Myfxbook connect directly to a broker account and display real trade history, which is a materially different form of evidence than a simulated equity curve, and is the same standard the CFTC points to when it warns traders to be skeptical of unverifiable performance claims.

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
AW

Adrian Walsh

Adrian Walsh 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