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

  1. Download the EA below (free, only the licence key is gated, not the download).
  2. Copy the .ex5 file into MQL5/Experts in your MetaTrader 5 data folder.
  3. In MetaTrader 5, open Tools > Options > Expert Advisors and tick "Allow WebRequest for listed URL", then add https://sync.golddailyinsights.com to the list.
  4. 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).
  5. Paste your Gold Key into the EA's licence input and confirm settings.

Main inputs

InputDefaultWhat it does
InpFilterModeFILTER_MAGIC_ONLYTrack one magic number, or every position on the symbol
InpEnableTradingHourstrueRestricts trading to a set hours window
InpTradeStartHour / InpTradeEndHour8 / 18The allowed trading hours window
InpOutsideHoursActionACTION_CLOSE_ORDERSWhat happens outside that window
InpLossModeLOSS_LIMIT_PERCENTLoss limits in cash or as a percentage
InpMaxDailyLoss5.0Daily loss limit
InpMaxSessionLoss2.0Session loss limit
InpEnableShutdownfalseSwitches off Auto Trading on the account if the daily limit is hit
InpIgnoreListFX Blue, Gold_Risk, Gold_Equity, Gold_Market_AssistantEAs 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.
Get the Gold Key →