Skip to main content
Home / Guides / Automation and services / Use PFX without an account
Guide · No sign-up · about 25 minutes

Use PFX tools without an account.Run the relay yourself.

You never need an account to use a PFX tool. The two that use the internet, the PFX Executor and copying between computers, talk to a small program called the relay. You can run that relay yourself, on your own PC or VPS. It is free, it makes its keys on your machine, and it never contacts PrecisionFX.

~25 minstart to finish
7 stepstick each one off
No sign-upnothing to register
Freeand stays free
✓
Nothing can trade until you say so.

The relay places no trades. Your EAs do, under their own settings, and the copy follower does nothing until you switch it on in two places. If a step doesn't look like the picture, that's normal: open the "Not seeing it?" box under it.

0

Do you need the relay at all?

Two of the copiers never use a website. Tick what is true for you.

Words you'll see. Relay = the program that passes alerts and trades between your terminals. Tunnel = a free service that gives your relay a safe https:// address without opening your router. Key = a password for one terminal.
1

Download the kit

One zip. Everything is inside.

  1. Download the kit for your computer. Windows covers almost every MT5 VPS.
  2. Right-click the zip, choose Properties, tick Unblock if it is there, press OK.
  3. Unzip it to a folder that stays, for example C:\PFX-Relay.
DownloadFor
PFX-SelfHost-Relay-Windows.zip ↓Windows PC or VPS. Node.js is already inside, nothing to install.
PFX-SelfHost-Relay-Linux.zip ↓Linux, macOS or Docker. Needs Node.js 20 or newer.
The kit has the same guide inside, as SELF-HOST-GUIDE.html, and the PFX Copy EAs in its EAs folder.
Not seeing it?

The download is big. The Windows zip carries Node.js, the program that runs the relay, so there is nothing else to install. The Linux zip is small.

2

Start the relay

Double-click, then leave the window open.

  1. Double-click START-RELAY.cmd.
  2. A black window opens and says First run: made relay-config.txt with new keys, made on this computer.
  3. Leave it open. Closing it stops the relay. Stopping it never closes a trade.
Not seeing it?

Windows protected your PC Press More info, then Run anyway. Or unblock the zip first (step 1) and unzip it again.

Port 8787 is already in use The relay is already running in another window. Use that one, or change port in relay-config.txt.

Node.js was not found You have the Linux download on Windows. Get the Windows zip.

3

Look at your settings file

relay-config.txt. Keep it private: the keys are passwords.

  1. Open relay-config.txt in Notepad. Every line is name = value.
  2. Save, and the relay reads it again within a few seconds. No restart needed.
  3. To make another key, write new where the key goes and save. To stop a key, delete its line.
LineWhat it is
webhook = pfxr_...A TradingView webhook address
terminal = pfxk_...The key for one PFX Executor
copy_source = pfxcopy_...The key for the PFX Copy Source EA (the account you trade)
copy_follower = pfxcopy_... mode=offThe key for one Follower EA. mode=off watches only. mode=on copies new trades
Not seeing it?

Settings: line 7: ... The window says which line is wrong and why. Fix that line and save. Nothing else stops.

4

Give it an internet address

TradingView and the copy EAs need a safe https:// address. A tunnel gives one.

  1. To try it today: download cloudflared-windows-amd64.exe from Cloudflare's cloudflared downloads, rename it cloudflared.exe, put it in the kit folder, set tunnel = quick and restart the relay.
  2. For a lasting address: a free Cloudflare Tunnel (needs a domain on Cloudflare), or a free ngrok fixed address. The table below says how.
  3. The relay prints every address you need, starting Relay address for every EA.
OptionHow
Quick testtunnel = quick. The address changes every restart, so use it for testing only.
Cloudflare Tunnel (recommended)In Cloudflare Zero Trust, Networks › Tunnels, create a tunnel and copy its token. Add a public hostname such as relay.yourdomain.com pointing to http://localhost:8787. Then set tunnel = cloudflare, cloudflare_token and public_address.
ngrokRun ngrok http 8787 --url=https://your-name.ngrok-free.app in its own window and set public_address to that address.
Your relay still only listens on this computer (listen = 127.0.0.1). The tunnel reaches it from inside. You never open a port on your router.
Not seeing it?

Could not start cloudflared.exe cloudflared.exe is not in the kit folder, or still has its long download name.

The tunnel stopped Check the internet connection, then restart the relay.

5

Let MT5 talk to the relay

Once per terminal.

  1. In MT5: Tools › Options › Expert Advisors.
  2. Tick Allow WebRequest for listed URL and add the address printed after In MT5, allow WebRequest for.
  3. Press OK, then re-attach the EA.
Not seeing it?

WebRequest is not allowed for The Executor says this until the address is on the list. Add it exactly as printed.

MT5 is blocking the relay address. The PFX Copy EAs say this. Same fix.

6

Connect the PFX Executor

TradingView alerts into MT5, through your own relay.

  1. Set the Executor's inputs as in the table.
  2. Paste the TradingView webhook address into your alert's Webhook URL. The alert message does not change.
  3. Send a test alert on demo. The window prints queued as #1, then collected #1, then what the EA did.
InputSet it to
Signal sourcePrecisionFX Cloud
Cloud: terminal keyyour terminal = pfxk_... key
Cloud: relay addressyour address, for example https://relay.yourdomain.com
"PrecisionFX Cloud" is the name of the relay setting. With your own address in it, the EA talks to your relay only.
Not seeing it?

terminal key rejected The key in the EA does not match a terminal line. Copy it again.

The window says the alert came to an address that is not in relay-config.txt. The webhook URL in TradingView is old or mistyped. Copy it from the window again.

It skipped entry alerts older than 10 minutes. The terminal was off. Old entries are never traded late; closes still go through.

7

Copy between computers (optional)

The PFX Copy EAs from the kit's EAs folder. Start on demo.

  1. On the account you trade, attach PFX_Copy_Source. Relay address = the Copy EAs address the window printed. Key = your copy_source key.
  2. On each account that copies, attach PFX_Copy_Follower with the same address and that follower's own key.
  3. Two switches before anything is copied: set that follower's mode=on in relay-config.txt, and tick Allow this EA to place orders in the Follower EA.
Losing trades are copied too. One key runs on one terminal only.
Not seeing it?

The relay address must start with https:// Use the tunnel address from step 4, not http://127.0.0.1.

The relay does not recognise this key. The key is not in relay-config.txt, or its line was deleted. Copy it again.

This key is bound to a different account. Each key belongs to one account. To move it, write new in place of the key and paste the new key into the EA.

Your safety nets

Why it is safe to run.

1

Keys made on your machine

The relay makes every key with your computer's own random generator and never sends it anywhere.

2

It never contacts PrecisionFX

No account, no check-in, no updates. The only outside connection is the tunnel you switch on.

3

Listens on this computer only

Unless you change listen. The tunnel reaches it from inside, with no open router port.

4

Stopping it closes nothing

Copies and trades keep their stop loss and take profit. They are just not managed until the relay runs again.

All done

You're set up.Nicely done.

Risk warning: The relay passes your own alerts and trades between your own terminals. Trading carries a high risk of loss and is not suitable for everyone. Copying repeats losses as well as profits. MetaTrader and MQL5 are trademarks of MetaQuotes Ltd.; PrecisionFX is not affiliated with or endorsed by MetaQuotes.