TradingView Trade Copier: 6 Simple Steps From Alert to MT5

A TradingView trade copier takes the alert your chart fires and places the matching order on a broker account. TradingView itself never touches MetaTrader. It can only post a message to a web address when an alert fires, so something has to catch that message and trade it.

That something is the part people get wrong. A bridge expert advisor on a home PC misses every alert while the PC sleeps. TPcopier catches the webhook on its own servers and passes it to your MT4 or MT5 account, which also runs in our cloud. The six steps below follow one alert from the chart to the order.

What you need before you start

TradingView sets its own rules for webhooks. Its help page on webhooks says they need a paid plan and 2-factor sign-in turned on. Check both first, because a free plan cannot send the alert at all.

You also need an MT4 or MT5 account with its trading password, and a demo account is the right place for a first test. Each account then runs in its own MetaTrader terminal on our servers, with the TPcopier EA on one chart.

MetaTrader 4/5 page in TPcopier with two MT5 demo cards, each marked Cloud, Running and Algo Trading on, ready to take TradingView alerts

Set up the copier: six steps from TradingView alert to trade

  1. Start the trial, press Make a bridge, pick TradingView and MetaTrader 5 or 4, and open the bridge.
  2. Add your account with the broker, the account number and its trading password. Its terminal then starts in our cloud.
  3. On the TradingView page, make one feed per strategy and copy its webhook address.
  4. Let the alert builder on that page write the JSON message for you.
  5. In TradingView, open the alert's Notifications tab, tick Webhook URL, paste the address, and put the JSON in the Message box.
  6. Back in the bridge window, link the feed to each account that should trade it. Nothing trades before this step.

TradingView to MT5 bridge in TPcopier: a TradingView feed linked to a cloud MT5 account, the trade copier link between them

The alert message, field by field

Only two fields are required: type and symbol. Every other field is optional, and a value TPcopier cannot read as a number is left out rather than guessed.

Field What it does
type buy, sell, buyclose or sellclose. Any other word is refused.
symbol Usually {{ticker}}. A prefix such as OANDA: is dropped.
key Names the strategy, so closes only touch trades opened under the same key.
sl, tp, tp2, tp3 Stop loss and targets as prices.
sl_points, tp_points Stop and target as points from the entry.
timenow {{timenow}}, so a late alert can be refused.

A price field is ignored. The order always opens at the market. Here is one alert that buys the chart's symbol with a stop 300 points away and a target 600 points away:

{"key":"gold@1","symbol":"{{ticker}}","type":"buy","sl_points":300,"tp_points":600}

A trailing comma after the last field is a common paste mistake. TPcopier removes it once before it gives up on the message. Messages over 16 KB are refused.

Alert builder on the TPcopier TradingView page that writes the JSON for a trade copier alert, with action, alert key, stop loss and take profit fields

Strategy alerts and indicator alerts

A Pine Script strategy needs only one alert. Put {{strategy.order.action}} in the type, and TradingView writes buy or sell at each fill. There is one catch, though. An exit fill reports the opposite side, so a long's exit arrives as a sell. Send exits as their own buyclose or sellclose alerts, or let a reversal do the work.

Reversals need nothing extra. When a buy arrives under a key that holds sells on that symbol, the EA closes those sells first and then buys. So one strategy never ends up holding both sides by accident.

An indicator alert sends a fixed message instead. You make one alert per action: a buy, a sell, and a close for each side. Use the same key in all of them, so the closes find the right trades.

Symbols, lots and stops

TradingView and your broker often spell the same market differently. The EA finds your broker's name in a set order. It drops the exchange prefix, then adds your Prefix and Suffix inputs, so XAUUSD can become XAUUSD.m. Its Symbol Mapping input swaps names in pairs and starts with GOLD=XAUUSD,SILVER=XAGUSD.

The lot never comes from the alert. You set it in the EA settings on the website: a fixed lot, a percentage of balance, a risk percent or amount at the stop, a lot per symbol, or a lot per target. When you save, only that account's terminal restarts, while the rest carry on.

A point is the symbol's smallest price step. On EURUSD quoted to five decimals, 300 points is 0.00300. So sl_points means something different on gold than on a currency pair, and it is worth checking once on a demo.

TPcopier Dashboard with the TradingView to MT4/5 bridge in the plan, its days left and today's orders

Late alerts and failed orders

Alerts are not always on time. TradingView can be slow during busy minutes, and a broker can reject an order for its own reasons, such as a closed market or a stop placed too close. Add {{timenow}} to every alert, so TPcopier can refuse one that turns up too late rather than open it at a stale price.

Every alert shows on the website next to the order it became, or next to the reason it did not. That record is the fastest way to tell a wrong symbol from a broker rejection.

Price

TradingView to MT4/MT5 costs $35 a month for 2 accounts, $60 for 3, $90 for 5, $150 for 10 and $200 for 15, with the cloud MetaTrader included. The free trial runs 2 days on one bridge, with up to 10 signals a day and no card. All payments are final. The full page is TradingView to MT4/MT5 in the cloud, and the PineConnector alternative page compares the two set-ups. If your alerts should go to a crypto exchange instead, see the TradingView to Binance bot.

Frequently asked questions

Does the alert need TradingView open in a browser?

No. TradingView runs the alert on its own servers once it is saved, and the webhook goes out even with your browser closed.

Can one alert trade several accounts?

Yes. Link the same feed to every account that should trade it, and each one uses its own lot rule.

Can I copy alerts to MT4 as well as MT5?

Yes. The bridge works with both, and one feed can drive a mix of MT4 and MT5 accounts.

Why did my alert open no trade?

Usually it is a missing feed link, a symbol the broker names differently, or a closed market. The alert's row on the website shows which one it was.

Automated alerts can lose money as fast as they make it. Test every alert on a demo account first, and size each account for the risk it can carry.