This site contains partner links. We are an introducing partner (IB) of HFM and are paid by HFM.
Apex Velocity

Manual

Everything you need to run the EA, on one page. For a first run, leave every setting at its default.

  1. How the EA works
  2. Installation and first run
  3. All parameters
  4. Reading the chart panel
  5. Control from your phone
  6. Account size and cautions
  7. Troubleshooting

How the EA works

Apex Velocity trades gold on the M1 chart with two engines, early take-profit (magic number 11111) and profit pursuit (22222). Each engine builds a basket by averaging and closes it with a trailing exit. There is no stop-loss for a basket.

See the full logic

Installation and first run

  1. Download the EA for your platform with the buttons below. MT4: copy the .ex4 file into the MQL4/Experts folder. MT5: copy the .ex5 file into the MQL5/Experts folder (File → Open Data Folder). The MT5 version runs on hedging accounts only; use the gold symbol shown in Market Watch.
  2. In MT4/MT5, open Tools → Options → Expert Advisors and allow WebRequest for https://luxjpn.com. The EA uses it to check that your account is approved.
  3. Open the M1 chart of gold (XAUUSDc on an HFM Cent account), attach the EA and turn on AutoTrading. The panel shows Auth=OK when the account is approved.
  4. MT4/MT5 has to stay open for the EA to trade. Use a PC that stays on, or a Windows VPS. The phone app cannot run an EA.
Attach the EA to one gold M1 chart only. Demo accounts are refused.

Step by step with pictures (MT4 / MT5)

The pictures show MT4 in English. MT5 works the same way; where a label differs, it is noted under the step. Labels can differ slightly between versions.

MetaTrader 4FileViewToolsOpen Data Folder1Data folder… › MQL4 › ExpertsApex_Velocity_EN.ex42

1Put the EA file in the Experts folder

In MT4/MT5 choose File → Open Data Folder. Open MQL4 → Experts and copy the downloaded .ex4 file there. Then restart MT4/MT5, or right-click Expert Advisors in the Navigator and choose Refresh.

MT5: the folder is MQL5 → Experts and the file is .ex5.

OptionsExpert AdvisorsAllow automated tradingAllow WebRequest for listed URL:https://luxjpn.com+OKCancel12345

2Allow WebRequest for luxjpn.com

Choose Tools → Options and open the Expert Advisors tab. Tick “Allow automated trading” and “Allow WebRequest for listed URL”, double-click the empty row of the list, type https://luxjpn.com and click OK. Without it the EA cannot check your approval.

MT5: the first box is called “Allow algorithmic trading”.

Market WatchSymbolBidAskEURUSDcGBPUSDcUSDJPYcXAUUSDcChart Window12M1M5M15M30H1H4D1W1MN3XAUUSDc,M1

3Open a gold M1 chart

Open the Market Watch (Ctrl+M), right-click XAUUSDc and choose Chart Window. Then click M1 on the timeframe bar. If gold is not listed, right-click the Market Watch and choose Show All.

MT5: the same steps. On HFM’s MT5, use the gold symbol shown in the Market Watch.

Navigator▸Accounts▸Indicators▾Expert Advisors▸ScriptsApex_Velocity_EN1XAUUSDc,M1dragApex_Velocity_ENAboutCommonInputsAllow live tradingOKCancel23

4Drag the EA onto the chart

Open the Navigator (Ctrl+N), expand Expert Advisors and drag Apex Velocity onto the gold M1 chart. On the Common tab tick “Allow live trading”, leave the Inputs at their defaults and click OK.

MT5: the box on the Common tab is called “Allow Algo Trading”.

AutoTrading1XAUUSDc,M1Apex VelocityAccount=•••••••• Auth=OKApex_Velocity_EN32

5Switch on AutoTrading and check the chart

Click AutoTrading on the toolbar so that it turns green. A smiling face appears at the top right of the chart, and once your account is approved the EA panel shows Auth=OK.

MT5: the button is called Algo Trading, and a blue cap appears next to the EA name.

All parameters

These are the inputs you see in MT4/MT5, with their defaults. For a first run, leave everything as it is. Distances are in points: on gold, 100 points is $1.00.

Magic numbers

ParameterDefault
Magic number (early take-profit engine)11111
Magic number (profit-pursuit engine)22222

Basic settings

ParameterDefault
Initial lot (early take-profit engine)0.01
Initial lot (profit-pursuit engine)0.01
Max slippage (points)20
Stop opening new basketsfalse
Use the profit-pursuit linefalse
Trade directionBoth directions (no limit)

Server load control

ParameterDefault
Place a hard SL while trailing (OFF recommended)false
Min move before the SL is updated (points)50.0
Min seconds between SL updates of one basket5
Min interval between server requests (ms)250
Max requests per minute (0 = no limit)60
Wait after a failed request (seconds)60
Management interval (ms), 0 = every tick0
Show request statistics on the charttrue

Volatility filter

ParameterDefault
Use the spike filtertrue
Spike size (points)800
Cooldown (minutes)10
Number of bars checked2

Mode settings: XAUUSD (wide step, high multiplier)

ParameterDefault
Max spread (points)70.0
Averaging step, early take-profit (points)200.0
Averaging step, profit pursuit (points)200.0
Take-profit distance, early take-profit (points)150.0
Take-profit distance, profit pursuit (points)150.0
Use the trailing take-profittrue
Trailing distance (points)30
Add swap and commission to the take-profit targettrue
Min net profit above break-even (points)5.0
Never trail below break-even including coststrue
Max cost offset for swap and commission (points)300.0
Min trail move before the backup SL is sent (points), 0 = every tick10.0
Lot multiplier, early take-profit1.62
Lot multiplier, profit pursuit1.62
Widen the averaging steptrue
Level where widening starts5
Widening multiplier1.8

Profit target

ParameterDefault
Stop at this profit (account currency), 0 = off0.0
Close everything when the target is reachedfalse

Trading hours

ParameterDefault
Use trading hourstrue
Start hour (MT4/MT5 server time)0
Start minute (MT4/MT5 server time)0
End hour (MT4/MT5 server time)22
End minute (MT4/MT5 server time)0

Risk control

ParameterDefault
No new orders at or below this margin level (%)300.0
Max averaging levels (early take-profit engine)20
Max averaging levels (profit-pursuit engine)20

Mobile control signals

ParameterDefault
Use mobile control signalstrue

Info panel (top right)

ParameterDefault
Show account status at the top right (balance / today's profit / current DD / today's max DD)true
Info panel font size11

Log settings

ParameterDefault
Log output (0 = none, 1 = errors only, 2 = detailed)1
Seconds before the same error is logged again300

Reading the chart panel

On the chartMeaning
Account=… Auth=OKThe account number is approved and the EA is allowed to trade.
Spread / MarginThe current spread in points and the margin level in %.
Early TP 11111 / Pursuit 22222How many averaging levels each engine holds on the buy side and on the sell side.
NewOK / AvgOKWhether a new basket and an averaging order are allowed right now.
Reason:Why orders are blocked: OffHours, WideSpread, Margin<min, SpikeCD (pause after a spike), TargetHit, NewStop.
Top rightBalance, today’s closed profit, the current drawdown and today’s largest drawdown.
Yellow lineThe trailing exit level of a basket that is in profit.

Control from your phone

In the MT4/MT5 phone app, place a Buy Limit order on gold at one of the prices below. The EA reads it as a signal, acts, and deletes the order. These prices are so far from the market that the order is never filled.

Buy Limit priceWhat the EA does
1.00Closes all positions
2.00Closes buy positions only
3.00Closes sell positions only
4.00Stops the EA: no new baskets and no averaging
5.00Resumes the EA after 4.00
6.00Pauses new baskets only; open baskets keep running
7.00Allows new baskets again after 6.00

Example: send 4.00 before a major news release and 5.00 when the market has calmed down. To get out quickly, send 1.00.

Account size and cautions

Account typeCent
PlatformMT4 / MT5
Gold symbolXAUUSDc
Size of 1 lot1 ounce
Maximum leverage1:2000
DepositAccountInitial lot
$700HFM Cent0.01
$7,000HFM Cent0.1
$70,000HFM Premium0.01
$700,000HFM Premium0.1

Troubleshooting

What you seeWhat to do
WebRequest URL : NOT addedIn MT4/MT5, open Tools → Options → Expert Advisors, add https://luxjpn.com to “Allow WebRequest for listed URL”, then attach the EA again.
Account : NOT approvedThe account number is not approved yet. Submit it on the Get started page and use “Check status”. The EA starts by itself after the approval.
DEMO ACCOUNTS ARE NOT SUPPORTEDThe EA runs on real accounts only. Open a real HFM Cent account.
Cannot reach the authorization serverCheck the internet connection and wait a few minutes. The EA tries again by itself.
WRONG CHARTAttach the EA to the M1 chart of gold (XAUUSDc on an HFM Cent account).
No tradesCheck that AutoTrading is on, and read the Reason line on the chart: outside trading hours, wide spread, low margin level or a pause after a spike.
“Not found” after Check statusThe number has not been submitted, or it was typed differently. Submit it again.
Still “Pending” after 24 hoursThe account was probably not opened through the link on this site. Open a new account with the button and submit the new number.

Start with the account

The EA can only be approved on an account opened through our link, so the account comes first.

Referrer ID30590139
Open a real accountHFM