Gold Vigil needs one thing from you before it can trade the nightly reopen: permission to read public PAXG prices from Binance. This guide shows the exact address to add, where it goes, and how to check on the panel that everything works. It takes about five minutes.
What you need
A hedging account with XAUUSD and a low gold spread. A terminal that stays on through the night, so a VPS is best. Nothing else: no Binance account, no API key, no extra files.
Step 1. Allow the Binance address (the reopen engine cannot run without it)
In MetaTrader 5 open Tools > Options > Expert Advisors.
Tick Allow algorithmic trading and Allow WebRequest for listed URL. Then add this line to the list, exactly as written, and press OK:
https://data-api.binance.vision
This is Binance's public market-data address. Gold Vigil only reads PAXG prices from it, one token is one ounce of gold. It never logs in and never sends anything about your account.
If the line is missing, the EA says so in the journal (Toolbox > Experts) with the full address to copy, and the panel shows PAXG BLOCKED in red. The level engine keeps working in the meantime.
Step 2. Attach Gold Vigil to one XAUUSD chart
Open one XAUUSD chart, any timeframe, and drag Gold Vigil onto it. In the Common tab tick Allow Algo Trading. In the Inputs tab choose the package: Conservative, Normal (default) or Aggressive. Nothing else needs changing. One chart is enough: both engines run on it.
If your broker names gold with a suffix, for example XAUUSD.r, attach Gold Vigil to that chart and type the suffix (.r) into the Gold symbol suffix input.
Step 3. Check the panel
A minute after attaching, the panel should read like this:
Gold: XAUUSD, hedging
PAXG feed: Binance, loading, then Binance and an age in minutes
Reopen engine: next 01:05 on a weekday (or next today 01:05)
Level orders: resting buy and sell stop orders are normal
Status word in the header: OK
What the other status words mean:
PAXG BLOCKED: the address from step 1 is missing, or Binance does not serve the country of this PC or VPS (the journal shows HTTP 451 or 403). Add the address, or run the terminal on a VPS in another country.
CLOCK: your broker's server clock is not the New York close clock (UTC+2, UTC+3 in US summer time) the reopen rule was built on. The reopen engine stands down, the level engine keeps trading.
NOT GOLD: the EA is on a chart that is not gold. Move it to XAUUSD.
ALGO OFF: algorithmic trading is switched off in the terminal or for the EA.
Step 4. A VPS
The reopen trade happens at 01:05 server time, so the terminal must be running at night. After you move the terminal to a VPS, open the VPS journal once and check that Gold Vigil started without a WebRequest line, and that the panel's PAXG feed shows Binance.
Small accounts
Gold Vigil runs from 500 USD. On a small account the reopen engine skips the nights where even the minimum lot would risk too much, and says so in the journal. The panel counts those nights in the Min-lot skips row. Both engines trade fully from 1,000 USD on Aggressive, 1,500 USD on Normal and 3,000 USD on Conservative.
Backtesting
No setup at all. The PAXG history the reopen rule needs is built into the EA, so the free demo runs in your own Strategy Tester. A test past the last date of that built-in history has no reopen trades, only level trades.
Questions are welcome in the product comments or by private message on MQL5.
Gold Vigil on the MQL5 Market: https://www.mql5.com/en/market/product/211618


