HQ_Gold_Scalper
HQ_Gold_Scalper

Installation Guide

Step-by-step guide to install the HQ Gold Scalper gold EA on MetaTrader 5: copy the .ex5, allow WebRequest, enter your token and start algo trading.

1

Prepare your account & MetaTrader 5

Make sure you have an MT5 account (demo or live) with a broker offering low XAUUSD spreads. Download MetaTrader 5 from your broker’s website and log in with your account number, password and server.

Tip: Start on a demo account for at least 1–2 weeks to get to know the EA.

2

Generate a license token

Open the Token menu and enter your details and the MT5 account number you will use. Save the token in the format HQGS-XXXX-XXXX-XXXX-XXXX.

Tip: The token is locked to one account number. Wrong number = invalid token.

4

Copy it to the Experts folder

In MT5 click File → Open Data Folder. Open MQL5 → Experts and paste HQ_Gold_Scalper.ex5 there.

Tip: Back in MT5, right-click the Navigator panel → Refresh. The EA will appear under Expert Advisors.

5

Allow Algo Trading & WebRequest

Open Tools → Options → Expert Advisors. Tick Allow algorithmic trading and Allow WebRequest for listed URL, then add this address to the list:

https://hq-bot.com

Tip: Without this step the EA cannot verify the token and will not open trades.

6

Open an XAUUSD chart

Open File → New Chart → XAUUSD (the symbol name may differ per broker, e.g. XAUUSD.m, GOLD). Set the timeframe to M5 (or M1 for aggressive mode).

7

Attach the EA & fill in Inputs

Drag HQ_Gold_Scalper from the Navigator onto the chart. On the Common tab tick Allow Algo Trading. On the Inputs tab paste your token into InpToken — every other parameter already has a default value:

ParameterDefaultDescription
License
InpToken "" Activation token — get it from the Token page (empty by default, required).
InpCheckMinutes 60 How often the EA re-checks the token (minutes).
Position & risk
InpLot 0.01 Lot size per trade.
InpStopLossUSD 2.0 Fixed stop loss: closes the position when floating loss reaches this amount ($).
InpTPCeilingUSD 1000.0 Maximum take profit / ceiling ($).
InpMinFund 20.0 Minimum available capital required to trade ($).
Candle pattern
InpCandleCount 5 Number of consecutive candles in the same direction.
InpMaruBodyRatio 0.85 Marubozu: the body must be at least this share of the candle’s total range (0.85 = 85%).
InpAvgBodyPeriod 20 Number of candles used to calculate the average body length.
InpLongBodyMult 1.5 A “long” body is at least this many times the average body length.
Trailing stop
InpUseTrailing true Enable the dynamic trailing stop (in USD).
InpTrailStartUSD 1.0 The trailing stop activates when floating profit reaches this amount ($).
InpTrailGapUSD 0.5 Trailing distance kept below the current profit ($).
InpTrailStepUSD 0.5 How much the trailing level moves up per step ($).
InpTrailMoveBrokerSL true Also move the stop loss on the broker’s server to the trailing level.
Freeze & general
InpUseBrokerSLTP true Place a backup SL/TP on the broker’s server when a position opens.
InpMaxConsecLoss 3 Number of consecutive losses before the EA freezes.
InpFreezeHours 6 How long the freeze lasts (hours).
InpMagic 778899 Magic number — use a different one if you run the EA on several charts.
InpSlippage 20 Maximum slippage (points).

Tip: Only InpToken is required. Change InpLot and the USD amounts only to match a larger account — see the tested capital/lot combinations on Backtest Result.

8

Enable & verify

Click the Algo Trading button on the toolbar until it turns green. The hat icon in the top-right corner of the chart should be blue. Open Toolbox → Experts and make sure you see Token valid · active until ….

Tip: Seeing "Token invalid"? Double-check the account number, token and WebRequest URL list.

9

Move to a VPS (recommended)

To run 24/5 without keeping your computer on, use a VPS close to your broker’s server or MQL5 Virtual Hosting (right-click your account in the Navigator → Register a Virtual Server), then migrate the chart and EA.

Still stuck?

Our team is ready to help with installation via remote session or chat.

Risk Warning: Trading forex and gold (XAUUSD) on leverage carries a high level of risk and may result in the loss of some or all of your capital. Past performance and backtest results do not guarantee future results. HQ_Gold_Scalper is an automated tool, not investment advice. Only trade with money you can afford to lose and always test on a demo account first.