TradingView to MT5
Your TradingView alert fires. Seconds later the order is live on your own MetaTrader 5 — with the stop, the take-profits and the risk you decided in advance. No desktop app, no broker password.
Requires a paid TradingView plan (webhooks are not on the free tier) and a Windows PC or VPS running MT5.
Can TradingView place trades on MT5?
Not on its own. TradingView has no direct connection to MetaTrader 5 — it can only send an alert to a webhook URL. To turn that alert into a real order, something has to receive it and place the trade. TradingView to MT5 does this with an Expert Advisor running inside your own terminal: the alert reaches CopyConnectFX, the EA collects it, and the order is placed at your broker with the stop loss, take-profits and position size you configured in advance. It needs a paid TradingView plan, because webhooks are not available on the free tier, and it never asks for a broker password.
What it does
Works with any indicator
If it can fire a TradingView alert, it can trade. Your own scripts, paid indicators, or strategies — the alert only has to say buy or sell.
Every order type
Market, buy/sell limit and buy/sell stop, with an entry price taken from the alert or offset from live price.
The rules live on the webhook
Indicator only says "BUY"? Your webhook supplies the stop, the take-profits and the risk. Change it once instead of editing every alert.
Close and reverse
A sell arriving while a buy is open can close it and flip — or close only, or be ignored. Your choice, per webhook.
Multi-TP and breakeven
Up to four take-profits with a close % each, and stop to entry after TP1 — managed tick by tick inside MT5.
Dry run until you trust it
Every new webhook starts in dry run. It shows exactly what it would have traded, and places nothing, until you switch it live.
Setup guide
About ten minutes for the first indicator, and roughly five for each one after.
- 1
Copy your pairing code
Sign in, open TradingView to MT5 in your dashboard, and copy the pairing code. It links a terminal to your account and replaces passwords entirely.
- 2
Install the EA
Download CCFXTradingViewEA.ex5, drop it into MQL5/Experts, restart MT5 and drag it onto any one chart. Paste your pairing code into its inputs and turn AutoTrading on.
- 3
Allow the connection
In MT5 go to Tools → Options → Expert Advisors, tick "Allow WebRequest for listed URL" and add https://api.copyconnectfx.com — this is how the EA collects your alerts.
- 4
Create a webhook
Add one webhook per indicator and set its rules: order type, stop loss, take-profits, risk, and what to do on an opposite signal. Copy the URL and the generated JSON.
- 5
Point TradingView at it
Create your alert, tick Webhook URL and paste the URL, then paste the JSON into the Message box. Set it to "Once Per Bar Close" so it can't fire on a repaint.
- 6
Test, then go live
Watch the first alerts land in dry run and check the parsed line reads correctly. When it does, press Go live. That's the whole setup.
The two things that trip people up
- Nothing happens and there is no error. AutoTrading is off, or the EA is not on a chart, or the WebRequest URL was never whitelisted. The EA prints the reason in the Experts tab.
- Trades fire at odd moments. The alert is set to “Once Per Bar” instead of “Once Per Bar Close”, so it fires mid-candle and can repaint.
What goes in the alert box
You never write this by hand — the builder generates it and you press Copy. It is short on purpose, because the trading rules live on the webhook where one edit changes every alert at once.
{
"symbol": "{{ticker}}",
"action": "buy"
}Anything you want to set per alert rather than per webhook can be added — order_type, entry, sl, tp. A value in the alert always beats the webhook default.
If a mandatory field is missing from both the alert and the webhook, the alert is rejected and the reason appears in your activity log. It is never guessed.
What this can and cannot do
It never sees a password
There is no field for a broker or investor password anywhere in the product. A pairing code links your terminal, and you can regenerate it whenever you like.
The website never trades
It queues an instruction. Software you installed, on a machine you control, decides whether to act. Close MT5 and nothing can happen.
Limits you set yourself
A maximum lot per trade, a daily trade cap, an optional daily loss limit that pauses everything, and a cap on how many pending orders can wait at once.
Repeat alerts are filtered
TradingView can deliver the same alert twice. Identical signals arriving together are collapsed into one so a repaint cannot double your position.
Questions
Do I need a paid TradingView plan?
Yes. Webhook alerts are not available on the free TradingView plan, so you need at least the entry paid tier. There is no workaround for this — it is a TradingView restriction, not ours.
How fast is it?
Typically 1.5 to 4 seconds from the alert firing to the order reaching your broker. Almost all of that is TradingView's own webhook dispatch, which no service can remove. Our part of the chain is under half a second.
Does my computer have to stay on?
Yes. The EA runs inside your own MT5 terminal, so MT5 must be open with AutoTrading on. Most people run it on a Windows VPS so it keeps working overnight. Nothing executes if the terminal is closed, and the missed alert is logged.
My indicator only sends "BUY" with no stop loss. Will it work?
Yes. Whatever the alert does not say, the webhook supplies. You set a default stop rule (fixed points, an ATR multiple, or an exact price), take-profits as R multiples, and the risk per trade. If the alert does include a stop, the alert wins.
What if the alert text is locked and I can't edit it?
Some indicators bake their alert text in. Each webhook has a keyword mapping, so you tell it once that this indicator's "LONG" means buy. Because one webhook is one indicator, the wording is always consistent.
Can it place pending limit and stop orders?
Yes — buy limit, sell limit, buy stop and sell stop, with an expiry of GTC, today, or a set number of minutes. The entry can be an exact price or an offset from live price.
What happens if a sell alert arrives while a buy is still open?
That is the "on opposite signal" setting. Close and reverse closes the buy and opens the sell, close only exits without re-entering, ignore leaves the buy running, and hedge allows both on a hedging account.
Do you ever see my broker password?
No. There is no field for one anywhere in the product. The EA runs inside your terminal and the only thing linking it to your account is a pairing code you can regenerate at any time.
Can the website place trades on my account?
No. The website queues an instruction; software you installed and control decides whether to act on it. If you close MT5, nothing can trade.
How much does it cost?
It is free, with unlimited webhooks. You need your own TradingView plan and your own MT5 account.
Read next
How to connect TradingView alerts to MT5
The full walkthrough, from installing the EA to your first live alert.
Alerts firing but not trading?
Nine causes in the order they actually happen, and how to find yours.
Comparing TradingView to MT5 bridges
Local EA or cloud execution, and the eight questions to ask before paying.
Connect your first indicator today
Free, unlimited webhooks, and every new one starts in dry run so you can watch it work before a single order is placed.