Connect MetaTrader 4/5 to TradingNerve with the EA
You install a small program in MetaTrader, paste the token generated in the app, and your trades reach your journal every time a position closes. Around ten minutes the first time.
Read this first
The number one reason this setup fails is the URL not being allowed in MetaTrader. Without it the EA runs, the smiley shows up, and nothing reaches your journal. Do not skip the Allow WebRequest step.
Which file to download for MT4 or MT5
Both files are already compiled. There is nothing to build and you never open MetaEditor. Take the one for your platform.
The token comes from the app, on the "MT4/5 via EA" screen. It starts with tn_. Keep it handy for step 6.
How to get the EA file onto your computer
MetaTrader runs on a computer, not on your phone. The file has to reach that machine.
- By email, attached to a message to yourself.
- By AirDrop if you are on a Mac.
- By USB stick if the computer is offline.
Easiest route: use the web app
On the computer running MetaTrader, sign in with your account at tradingnerve.com/en/journal/ea. You can download the EA file and copy your token right there, with nothing to transfer from your phone.
If your browser saves the file inside an archive, unzip it before going further.
Where to put the EA file in MetaTrader
- In MetaTrader, open File > Open Data Folder.
- Go into
MQL5/Expertson MT5, orMQL4/Expertson MT4. - Drop the file in there.
Careful: the data folder is not the MetaTrader install folder. Always go through the File menu, it is the only reliable path.
How to allow WebRequest in MetaTrader
MetaTrader blocks outgoing requests by default. You allow it once, for a single address.
- Open Tools > Options > Expert Advisors.
- Tick "Allow WebRequest for listed URL".
- Add the address below to the list, then confirm.
URL to allow
https://szdcdwtaqrhowmsnjrvz.supabase.cohttps://szdcdwtaqrhowmsnjrvz.supabase.coCopy the address exactly, with no trailing slash and nothing after the .co. A mistyped address has the same effect as no address at all.
Why you have to refresh the Expert Advisors list
MetaTrader reads the Experts folder when it starts, so a file added afterwards does not appear on its own.
- Restart MetaTrader.
- Or right click Expert Advisors in the Navigator, then pick Refresh.
How to turn on Algo Trading and attach the EA to a chart
- Click Algo Trading in the toolbar. The button is called AutoTrading on MT4.
- Open any chart, the symbol does not matter.
- Drag
TradingNervePublisherfrom the Navigator onto that chart.
Navigator
- +Indicators
- -Expert Advisors
- TradingNervePublisher
- +Scripts
One chart covers the whole account. The EA places no orders, it reads closed positions and sends them.
Where to paste your token in the EA
Attaching the EA opens a window. Go to the Inputs tab, that is where the two settings live.
TN_TOKEN: paste the token copied in the app, it starts withtn_.TN_DEBUG: leave itfalse. Switch it totrueonly to read details in the Experts tab.
- TN_TOKEN : paste the token copied in the app
- TN_DEBUG : leave it false
Confirm with OK. A smiley on MT4, a blue hat on MT5, appears in the top right corner of the chart while the EA runs. From then on, every position you close reaches your journal.
Tip so you never retype the token by hand: email it to yourself from the app, or open the web app on the computer and press Copy.
What to do when trades do not reach TradingNerve
Work down this list in order. The first line fixes most cases.
Check the Experts tab first
At the bottom of MetaTrader, the Experts tab shows what the EA is doing. If the URL is not allowed you will read "TradingNerve: WebRequest failed" there. Set TN_DEBUG to true for more detail.
Algo Trading is off
If the button icon is red or grey, the EA is not running. Click it, then check that the smiley or the blue hat shows up in the top right corner of the chart.
Wrong file
The .ex4 is for MetaTrader 4, the .ex5 for MetaTrader 5. A mismatched file never shows up in the Navigator.
The file is in the wrong folder
It belongs in MQL5/Experts, or MQL4/Experts on MT4, inside the data folder. Not at the root, not in Indicators.
The token was revoked
If you regenerated or revoked the token in the app, the old one stops working. Copy the new one into TN_TOKEN.
You are waiting on an open trade
The EA sends trades when the position closes, not when it opens. A running position is not in the journal yet.
MetaTrader is closed
The EA sends the closes it sees while it runs. The chart has to stay open with MetaTrader running, on a machine that stays on or a VPS.
Frequently asked questions
Nine times out of ten the URL was never added under Tools > Options > Expert Advisors. The EA runs, the smiley is there, and nothing leaves the terminal. Open the Experts tab at the bottom of MetaTrader: if you read "TradingNerve: WebRequest failed", that is it. Add the URL, confirm, then remove and attach the EA again.
No. The file you download is already compiled, .ex4 for MetaTrader 4 and .ex5 for MetaTrader 5. You never open MetaEditor.
No. It reads closed positions on the account and sends them to your journal. It places no orders.
The EA sends the closes it sees while it runs, so yes, the chart has to stay open with MetaTrader running. Many traders use a VPS so they do not depend on their own computer.
You can attach the EA to one chart in every terminal you want to track, using the same token. All trades land in the same journal.
The EA link is part of the Pro plan
The token is generated in the app, on the "MT4/5 via EA" screen. If you cannot see it yet, your account is not on Pro.
See the appGet the weekly brief
The best prop firm deals, new guides and comparisons, straight to your inbox, free.
No spam. Unsubscribe in one click. We respect your inbox.
