How to Set Up Risk Management
in Your Gold Trading EA
Risk management is not a philosophy — it is a set of specific values in your EA's parameter dialog. This guide walks through each parameter, what it does, what happens if you get it wrong, and what value to start with.
Quick Answer
The four non-negotiable risk parameters: lot size at 0.01 (never higher than 0.05 until you have 3+ months of verified live results), hard stop loss enabled on every trade, session filter excluding the Asian session, and spread filter set to 15–18 pips. These four settings determine 90% of your capital protection. Everything else is optimization.
EA Parameters — Click to Understand Each Setting
Each row represents a parameter in the MT5 EA input dialog. Click any row to see why this value, what happens if you change it, and what is dangerous.
Risk Config Health Check
Answer honestly about your current EA configuration. A No on the first two questions is a critical problem.
Lot size set to 0.01–0.05 for your account size?
Hard stop loss enabled on every trade (not 0)?
Max simultaneous trades set to 2 or less?
Session filter excludes Asian session (00:00–07:00 UTC)?
Spread filter set to 15–20 pips?
News pause enabled?
Daily loss limit set in broker's risk management tools?
The Most Common Risk Configuration Mistakes
Lot size too high from the start
The most common cause of early losses in automated trading is starting at a lot size that looks reasonable on paper but produces dollar losses the trader cannot psychologically sustain. On a $2,000 account, 0.10 lot sounds modest — but five consecutive losses at 30-pip SL costs $150, or 7.5% of the account. Most traders intervene or abandon the EA after this experience, missing the recovery. Start at 0.01 regardless of account size.
No stop loss
Some EAs advertise 'intelligent position management' as a reason not to need a hard stop loss. This is dangerous reasoning. The EA's management logic runs on your VPS. If your VPS disconnects, the broker's server has issues, or a price gap occurs during a news event, there is no management code running. The hard stop loss is an order sitting at your broker's server — it executes regardless of VPS status. It is the only risk control that survives infrastructure failure.
Wrong session time zone
The single most common configuration error. Session parameters are in broker server time, but traders often set them in UTC or local time. If your broker is UTC+2 and you want to start at 07:00 UTC, you need to enter 09:00 in the EA parameter. Getting this wrong by 2 hours means your EA runs during the wrong window for the entire trading day.
No spread filter or filter too permissive
Setting the spread filter to 50 pips to avoid missing any trades is functionally the same as having no filter. The spread filter should be set to block the specific high-spread periods — Asian session and news events. For XAUUSD on a standard ECN broker, setting to 15–18 pips blocks all high-spread periods while allowing all normal London and NY trading.
Finding Risk Management Settings in MT5 Itself
In addition to the EA's own parameters, MT5 and your broker provide account-level risk controls. These operate independently of the EA and provide a second layer of protection:
MT5 trailing stop on positions
Right-click any open position → Trailing Stop
Moves the stop loss behind price as the trade moves in profit. Separate from the EA's built-in trailing logic — use the EA's trailing if it has one, not both.
Broker account protection / drawdown protection
Account management portal → Risk Settings or Protection
Many brokers offer a daily or total drawdown limit that automatically closes all positions and prevents new ones if equity drops by a specified amount. This is the ultimate circuit breaker.
MT5 alerts on equity
MT5 Terminal → Alerts → Create Alert → Account Equity condition
Set an alert that triggers when equity falls below a threshold. This does not stop the EA but notifies you to check and potentially intervene.
The Parameters Above as a Best-Practice Reference
The eight parameters listed in the EA dialog simulation above — lot size, max simultaneous trades, spread filter, session start, session end, stop loss, take profit, and news pause — reflect the standard risk management structure for XAUUSD M15 breakout trading.
These exact parameters are present in Goldie Razor V2.8.4, where they represent the configuration defaults based on how the strategy is designed to operate: M15 breakout on XAUUSD, London through NY close only, ECN broker conditions, with 30-pip SL and the trailing stop managed internally through the six-level trail system.
For any XAUUSD breakout EA you evaluate, this parameter set is a useful reference for what should be present. If an EA you are considering does not expose these controls, that is worth investigating — it may mean the EA does not support some of these protections, which changes the risk profile significantly.
Frequently Asked Questions
Related Guides
XAUUSD Risk Management: How to Protect Your Account
Full risk management framework including position sizing philosophy
Best Lot Size for XAUUSD EA Trading with 0.01 Lots
Calculating the right lot size based on account size and risk tolerance
Should Your Gold EA Use a Stop Loss?
In-depth guide to stop loss configuration and risk-reward trade-offs
How to Set Up Automated Gold Trading with an EA
The broader automated setup context — risk configuration in context
Safe Goldie Razor Settings for a Small XAUUSD Account
Safe starting parameters by account size, including risk settings
Goldie Razor V2.8.4
M15 breakout + H4 EMA filter — built for XAUUSD on MT5