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 lot settings to your account size before you press OK. Golden Viper EA, for example, only needs its license key in its single input, since its trading settings and magic number are fixed, it trades the chart's symbol and has a built-in trend filter. 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. 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 within 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, using concrete numbers so you can see the real dollar impact of each setting instead of guessing at the defaults.

Try Golden Viper EA free for 3 days A gold grid EA for MT5 cent accounts, with a live account you can check on Myfxbook. Start with a free trial key, then choose 1 month for $49, 1 year for $199 or lifetime for $299.
Start Free 3-Day Trial →

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 isn't cosmetic configuration. It's 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 mean a meaningfully different fill price. Understanding what each field does, rather than simply 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. New to EA configuration generally? It helps to first review the fundamentals in a guide to understanding EA settings before tackling the 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 hasn't explicitly authorized. 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. Set it too tight, say, 5 points, and the EA may reject valid entries during normal volatility, leaving 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. Something in the range of 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're 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're running. The MQL5 documentation on input variables is useful background here too, if you want to understand how developers structure these settings programmatically.

For Golden Viper EA specifically, the Inputs tab holds a single input, "License key". The entry logic is built in (a built-in trend filter, checked once when a basket starts), and so are the grid distances and the take-profit distances; there is no level cap. These fixed, built-in controls are still worth understanding:

  • Start lot and lot step (fixed): level 1 trades the start lot and each further level adds the lot step, so the lot size rises level by level with no multiplier.
  • Magic number (fixed, cannot be changed): a unique identifier so the EA's trades can be distinguished from manual trades or other EAs on the same account.
  • No equity stop: nothing closes the basket at a floating-loss limit, and the EA has no stop loss of its own.

Because Golden Viper EA uses a fixed lot ladder rather than sizing from your balance, the single most important thing to check is how that ladder fits your account. The EA is designed for cent accounts and built around a $1,000 start balance (100,000 cents); on a standard USD account the same lot sizes carry far larger dollar risk, and brokers' cent contract sizes differ, so check yours. For 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. Run only one EA on one account, and 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 nearly 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 matters most 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, along with common numbering conventions, see the dedicated guide on EA magic numbers.

Risk Settings: How Lot Sizing Scales With Account Size

Risk-based lot sizing means an EA calculates position size from three inputs: your account equity, a chosen risk setting, and the stop distance on the specific setup. That's meaningfully different from a fixed-lot EA, where you type "0.10" and every trade uses that size regardless of account growth or drawdown. Golden Viper uses neither: it follows a fixed lot ladder (a small starting lot, rising by a fixed step per level) with no stop loss, so its exposure grows with basket depth rather than with a risk percentage. The table below uses approximate, illustrative figures for a generic risk-based EA to show how the same signal produces different exposure across risk settings.

Illustrative risk profile (generic risk-based EA)Approx. 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's calculated from current market conditions rather than a fixed pip value. What the table shows is the relationship: doubling your account size roughly doubles position size at the same risk setting, and moving from a conservative to an aggressive profile roughly quadruples risk per trade for the same account. Before choosing an aggressive risk setting on any live account, it's 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 the smallest risk setting your EA offers (Golden Viper EA's settings are fixed, so for it this means a modest account you can afford to lose) until you've observed at least a full quarter of live results on your own account, cross-checked against a publicly verified track record, before considering a larger setting.

Timeframe and Chart Setup for a Gold Grid EA

One property that trips up new users is chart timeframe. MT5 Expert Advisors execute their logic based on the timeframe of the chart they're attached to, not a setting buried in the Inputs tab, unless the EA is explicitly coded to reference other timeframes internally. Golden Viper EA is the exception: the chart timeframe does not matter, because the direction is chosen once, when a basket starts, by a built-in trend filter. For an EA that is built around one specific timeframe, attaching it to a different chart may cause its 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 the one your EA's vendor specifies (for Golden Viper EA any timeframe works), and the chart has enough historical bars loaded for the EA to calculate its indicators correctly on the first tick. An EA that reads indicator values depends on complete price history, so an improperly loaded chart history can cause it to misjudge direction when it starts a new basket.

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 haven't 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 (Golden Viper EA is the exception: it does not run in the Strategy Tester, so you judge it by its public live Myfxbook account instead). For other EAs, this step isn't optional diligence. It's the only way to confirm your deviation, lot settings, 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 with your intended settings and 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 the 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 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 12294582, and understanding how that verification process works is useful context: see Myfxbook's verification knowledge base for how connected accounts are validated.

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
Running the lot ladder on a balance too small for itAccount size (the lot ladder itself is fixed)Drawdowns 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

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's also worth staying alert to a different category of "configuration" issue: vendors who claim their EA can't 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

A grid EA such as Golden Viper EA manages an open basket tick by tick from Monday to Friday, so it needs a VPS or always-on PC that stays connected whenever the market is open. Running MT5 on a local desktop that sleeps overnight, or that loses connectivity during a broker maintenance window, means the EA cannot add its next level or run its Friday close while the terminal is offline.

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, lot settings, and magic number (for Golden Viper EA, only the license key), since a fresh terminal installation doesn't 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 who builds it and the 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 settings, 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 truly 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 (for Golden Viper EA the chart timeframe does not matter, since the direction is chosen once, when a basket starts) 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 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 outside its trading window (Golden Viper EA works through the trading week and closes everything at the Friday close, before the weekend) or has no valid license, so check your Experts log for a license or setup alert before assuming it's broken.

Can I run Golden Viper EA on MT4 as well as MT5?

No. Golden Viper EA is MT5-only and needs a hedging account; there is no MT4 build. The lifetime key is a one-time $299 purchase with no recurring fee; the 1-month ($49) and 1-year ($199) keys can be paid once or set to autopay, which you can cancel.

Does Golden Viper EA have Conservative, Normal, and Aggressive risk modes?

No. Golden Viper EA has no preset risk modes and no adjustable settings: the start lot and lot step are fixed (the lot ladder rises by a fixed step per level, with no doubling), and there is no Max levels cap, no equity stop and no news filter. It is a no-stop-loss averaging-down grid, so the account size you run it on is what matters.

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 isn't 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 can't 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 EA settings require reattaching the EA to the chart?

No. Inputs-tab parameters can typically be changed by reopening the EA's properties window, adjusting the value, then clicking OK. The EA doesn't 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, a materially different form of evidence than a simulated equity curve, and the same standard the CFTC points to when it warns traders to be skeptical of unverifiable performance claims.

Myfxbook Verified

Automate Your XAUUSD Trading

MT5Hedging cent account
XAUUSDGold only
GridBasket take-profit
Lifetime license $299 one-time
Get Lifetime Access — $299 →
✓ License key by email✓ One MT5 account per key✓ MT5 cent accounts✓ Full setup help
GV

Golden Viper EA

Written by Golden Viper EA, the maker of the Golden Viper EA gold Expert Advisor for MetaTrader 5. We sell the EA, so weigh our product mentions with that in mind; its live account is public on Myfxbook.

Myfxbook VerifiedLive account verified on MyfxbookPublic track record

Let Golden Viper EA trade gold for you

Automated XAUUSD grid trading for MT5 cent accounts, verified live on Myfxbook. One-time $299, lifetime access.

Get Lifetime Access — $299

Start Free 3-Day Trial → · Full setup help