Gold Key Robot
Gold Risk Management EA
An account-protection overlay that watches my daily and session loss limits.
Get the Gold Key to unlock it →What it does
This is a protection overlay, not a signal EA. It watches whatever is already open on the account, either by magic number or by every position on the symbol, and applies a trading-hours filter plus a daily and a session loss limit (in cash or as a percentage). If the daily loss limit is hit, it can switch off Auto Trading for the whole account, but with an ignore list so EAs I name keep running regardless. It only makes sense running alongside my actual signal EAs, not on its own.
Download
The EA itself is free to download. Only the licence key, included with a Gold Key subscription, is needed to run it.
Download Gold_Risk_Management_EA.ex5 ↓Installation
- Download the EA below (free, only the licence key is gated, not the download).
- Copy the .ex5 file into MQL5/Experts in your MetaTrader 5 data folder.
- In MetaTrader 5, open Tools > Options > Expert Advisors and tick "Allow WebRequest for listed URL", then add https://sync.golddailyinsights.com to the list.
- Drag the EA onto a XAUUSD chart. On the Common tab, tick "Allow Algo Trading" (skipping this causes error 4014, not the URL error 4060).
- Paste your Gold Key into the EA's licence input and confirm settings.
Main inputs
| Input | Default | What it does |
|---|---|---|
| InpFilterMode | FILTER_MAGIC_ONLY | Track one magic number, or every position on the symbol |
| InpEnableTradingHours | true | Restricts trading to a set hours window |
| InpTradeStartHour / InpTradeEndHour | 8 / 18 | The allowed trading hours window |
| InpOutsideHoursAction | ACTION_CLOSE_ORDERS | What happens outside that window |
| InpLossMode | LOSS_LIMIT_PERCENT | Loss limits in cash or as a percentage |
| InpMaxDailyLoss | 5.0 | Daily loss limit |
| InpMaxSessionLoss | 2.0 | Session loss limit |
| InpEnableShutdown | false | Switches off Auto Trading on the account if the daily limit is hit |
| InpIgnoreList | FX Blue, Gold_Risk, Gold_Equity, Gold_Market_Assistant | EAs spared from the shutdown |
Frequently asked questions
- Is this EA free to download?
- Yes. Gold Risk Management EA is free to download below. Only the licence key, which unlocks it when you attach it to a chart, needs a Gold Key subscription.
- Does it need Algo Trading enabled?
- Yes. Tick "Allow Algo Trading" on the Common tab when you attach it, otherwise the licence check fails with error 4014.
- Does it work on any broker?
- It is built and tested around XAUUSD. The licence check needs https://sync.golddailyinsights.com added to your WebRequest allow-list in Tools > Options > Expert Advisors, which works on any MT5 broker.