Before you start
Two checks. Tick them as you go.
Written by Dan Freeman · last checked
TradingView can send an alert to a web address the moment it fires. That is a webhook. With the free PFX relay and PFX Executor, that alert becomes an order on your MetaTrader 5 account. This guide explains each link in the chain, then points you to the setup guides. Test everything on a demo account first.
This guide explains the chain. The setup is in three short guides, linked in step 6.
Two checks. Tick them as you go.
An alert that calls a web address.
I can't see the Webhook URL box. It only appears on paid TradingView plans. Check your plan.
Four links, each doing one job.
Do I need my own server? No. The relay is hosted for you. You can also run it yourself, covered in step 5.
What you type in the alert's message box.
action and symbol are required.instance must match the Executor's Route key, so each terminal only takes its own alerts.TradingView says the message is invalid. Check it is valid JSON: quotes around every name, commas between lines.
Where most first tests go wrong.
The alert arrived but no trade opened. Check the symbol name first. It is the most common reason.
Two ways to run the middle link.
Run the relay yourself · Is the hosted relay up right now?
Which should I pick? The hosted relay is quicker to start. Self-hosting suits you if you want no account.
Three short guides, in order.
Part 1: connect MT5 · Part 2: send a test alert · Part 3: run it reliably · Coming from PineConnector?
I use MetaTrader 4. The PFX Executor is for MetaTrader 5 only.
Follow one alert all the way to a demo account before any real one.
Set the Executor's maximum lot size deliberately. It refuses any alert above it.
Automation adds the risk of a missed or repeated alert. Check the alert log after every change.
Your prop firm may restrict automation or webhook trading. Check its rules before you connect a challenge or funded account.
Risk warning: Trading carries a high risk of loss and is not suitable for everyone. Automated trading carries the same risk as manual trading, plus the risk of a missed or repeated signal. MetaTrader and MQL5 are trademarks of MetaQuotes Ltd.; PrecisionFX is not affiliated with or endorsed by MetaQuotes.