Tool · Webhook · MT4 · MT5

TradingView to MT4/MT5 Copier for GCC Traders: Alerts Into Orders

Our TradingView to MT4/MT5 copier turns your TradingView alerts into orders in your MT4 or MT5 terminal, with Gulf session times and your broker's gold symbol. It is a ready tool, so you keep your charts and Pine Script. You also test the whole chain on a demo account first.

  • Ready tool · $150
  • MT4 & MT5
  • Demo test first
  • Setup help
TradingView to MT4/MT5 copier: a TradingView alert sent as a JSON webhook through a VPS listener places the order in MT4 and MT5

How it works

Choose → Configure → Test → Go live

  1. STEP 01

    Choose

    Pick the tool and tell us your source, symbols and platform.

  2. STEP 02

    Configure

    We set your lot, risk and symbol rules on MT4 or MT5.

  3. STEP 03

    Test

    You run it on your own demo account first.

  4. STEP 04

    Go live

    You get the final files, a settings guide and setup help.

On this page

TradingView to MT4/MT5 copier flow from alert to webhook, listener, EA and order

Who a TradingView to MT4/MT5 copier is for

Plenty of traders chart and test on TradingView while their account sits with a MetaTrader 4 (MT4) or MetaTrader 5 (MT5) broker. The copier closes that gap. It fits if you:

  • write strategies in Pine Script but place trades through MetaTrader,
  • get alerts on your phone and miss entries while you are busy,
  • run alerts on many symbols and want one place that executes them,
  • hold accounts on both platforms and want them to follow the same alerts.

You may also see this kind of tool called a webhook bridge, and ours works only with your own TradingView alerts and your own trading accounts. We build and set up the software, and every trading decision stays with you.

From alert to order in five steps

There are three moving parts: TradingView, a small listener program and an EA in your terminal. Each time an alert fires, it takes this path.

1. Your alert fires on TradingView

You set the alert on an indicator, a strategy or a drawing, as you do now. Two boxes change. The webhook URL box gets the listener’s address, and the message box gets a short JSON order.

2. TradingView sends a webhook

When the condition triggers, TradingView posts your message to that URL. It gives the server three seconds to answer and cancels the request after that, which is why our listener replies straight away and leaves the real work for afterwards.

3. The listener checks and queues it

The listener runs on a VPS or a cloud server, and it checks the secret token first and drops any request that lacks it. Then it reads the JSON, logs the alert with its arrival time and puts the order in a queue.

4. Your MT4 or MT5 EA picks it up

An EA on one chart asks the listener for new orders about once a second. If the EA and the listener share a VPS, they can pass orders through a local file. For the network route, the listener’s address has to go into the allowed URLs list on the Expert Advisors tab of the terminal’s options, which MT4 and MT5 both have. Without it, the request fails.

5. The order opens with your rules

The EA maps the symbol, works out the lot size from your risk rule and sends the order with your SL and TP. Each result goes into the EA’s own log, which is how you later trace any alert to the order it opened, or to the reason it didn’t.

Fields inside one TradingView webhook alert message for MT4 or MT5

The alert message format

A gold buy alert looks like this:

{"action": "buy", "symbol": "{{ticker}}", "risk": 1.0, "sl": 2340.0, "tp": 2370.0, "id": "{{ticker}}-{{timenow}}", "token": "your-secret"}
Field What it carries
action buy, sell or close, plus close half if you add partial closes
symbol the TradingView ticker, which the EA maps to your broker’s name
risk or lots the size, as a percent of balance or a fixed lot
sl and tp prices, or distances in points if you prefer
id a value unique to each alert, so a repeat never opens a second trade
token a shared secret that the listener checks first

The id joins the ticker to the fire time on purpose. TradingView’s {{timenow}} only goes down to the second, so two symbols that alert in the same second would otherwise share one id.

Keep the token separate from your broker password, because TradingView’s own help page warns against putting login details or passwords in a webhook body. For extra safety, the listener can also accept requests only from the IP addresses TradingView publishes for its webhooks.

Strategy alerts can carry the JSON inside the Pine code, through the alert_message argument of strategy.entry(), strategy.exit() and the other order calls. The alert’s message box then holds just the {{strategy.order.alert_message}} placeholder, and every entry and exit sends its own message without manual edits.

Why map symbols between TradingView and your broker?

Names rarely match. Gold that is XAUUSD on TradingView may be XAUUSD.m, XAUUSDm, XAUUSD.pro or GOLD in your terminal, and index names drift even further apart.

The EA keeps a small mapping table that you can edit at any time. During setup we copy the exact names from your Market Watch into it, which makes {{ticker}} land on the right symbol. Before each order, the EA also checks the lot step, the minimum stop distance and whether the market is open.

Gulf details that change the setup

We set up each copier for traders in the UAE, Saudi Arabia, Kuwait, Qatar, Bahrain and Oman. Where you trade from changes a few settings.

Sessions in Gulf time

Pine Script reads a session in the exchange’s time zone unless you name another one. Pass “Asia/Dubai” or “Asia/Riyadh” and the session follows your own clock, so a filter can allow alerts only after the US data at 16:30 or 17:30 UAE time, for example. Your broker’s server clock is usually different again, so the EA converts its own hours rule to that clock.

Weekends and your VPS

Gold and forex run from early Monday to early Saturday, Gulf time, at most brokers. Friday is a weekend day everywhere in the Gulf except the UAE, and alerts may fire while you are away from the screen. The listener and the terminal therefore live on a VPS that stays on all week.

Choose its region by where your broker’s trade server is: when that server is in Europe, a VPS in Europe usually adds less delay than one in the Gulf.

Swap-free accounts

The copier is compatible with swap-free / Islamic accounts. Our swap-free EA page explains how those accounts work.

When an alert fails or arrives twice

TradingView says webhooks may occasionally fail to reach their URL, and its alert log has a Webhook status column for each one. The copier plans for that from the start:

Problem What the copier does
Any alert, order or error The listener and the EA both record it with a timestamp
Requote or busy server The EA sends the order again
Same alert ID twice Only the first one runs, so your position never doubles
Alert older than your limit, for example 30 seconds It is dropped, and no late trade opens
Order still failing The EA sends a push notification to your phone, and you act by hand

Nothing can replay a webhook that never arrived. Read our logs next to TradingView’s alert log and you can see where a message stopped.

How a TradingView to MT4/MT5 copier handles alerts that fail, repeat or arrive late

Latency: seconds, not instant

Every hop adds time. TradingView has to evaluate the alert and send it, then the listener, the EA and your broker each take their share. During busy news, alerts can arrive later than usual while price keeps moving. The EA therefore compares the current price with the alert price before it sends anything, and it skips the trade when the gap is wider than your limit.

MT4 or MT5: one listener, two EAs

The listener doesn’t care which platform you trade on. An MQL4 EA serves MT4 and an MQL5 EA serves MT5, and because both read the same JSON, your alerts stay the same if you ever switch platforms.

Positions are where the two platforms differ. MT4 tracks every order on its own. An MT5 account uses either netting, with one position per symbol, or hedging, which allows several positions on the same symbol. A close alert behaves differently on each, and we test every close action on your exact account type.

The standard tool runs on one platform of your choice. Having MT4 and MT5 follow the same alerts at once costs more, because each terminal needs its own round of tests.

What you need before you start

Four things should be in place before the first test alert:

  • a paid TradingView plan with webhook alerts,
  • two-factor login switched on in TradingView,
  • an MT4 or MT5 account with a broker that allows EAs,
  • a VPS or a PC that stays on while you trade.

Check your broker’s terms and your local regulations before you trade live. If you want help with the server, our website hosting and maintenance service can set up a Windows VPS for your terminal and the listener.

Checklist of what you need before you connect TradingView alerts to MT4 or MT5

How we set up your TradingView to MT4/MT5 copier

It follows the same four steps as our other ready tools, adapted to webhooks.

  1. Choose. You pick MT4 or MT5 and list your alerts, with the symbols and the risk rule for each one. We agree the exact JSON for each alert with you, so the EA never has to guess.
  2. Configure. The listener and the EA already exist, which keeps this step to settings: the EA build for your platform, the symbol map and the webhook URL on your VPS.
  3. Test. A copier has no price history to replay, so this step is a live demo test. You fire real alerts from TradingView into a demo account and compare each one with the order it opened: symbol, lot, SL, TP and time.
  4. Go live. You receive the files, the alert templates and a setup call that connects your real alerts.

What you receive

Everything you need to run it yourself comes in the kit:

  • the compiled EA, as an .ex4 file for MT4 or an .ex5 file for MT5,
  • the listener program with its setup notes,
  • alert templates for each action (buy, sell, close),
  • a settings guide that covers symbol mapping and risk, plus the delay limits,
  • one setup walkthrough on your own VPS,
  • 7 days of fixes after delivery,
  • source code for both parts, if you chose that option.

Safe delivery

Nothing touches a live account until you say so. The trial EA refuses any account except your demo, and it can carry an expiry date. Once enough test alerts have turned into the right orders, you pay the balance and the unlocked EA replaces the trial. Source code follows if it was part of your order.

Price of the TradingView to MT4/MT5 copier

The copier is a ready tool at $150. That price covers one symbol set with buy, sell and close actions, on MT4 or MT5. Extras cost more: multi-symbol routing, partial closes, or running both platforms at once.

You rent the VPS yourself, in your own name, so it stays under your control. Every job gets a fixed USD quote before work starts, and you pay in USDT, with a 50% deposit first. Our expert advisor development cost page shows typical ranges. Most Gulf currencies hold a fixed rate to the dollar, which keeps the price steady in dirhams or riyals.

Our team works remotely from India, Sunday to Friday, 10:30 to 20:30 UAE time or 09:30 to 19:30 Saudi time. The webhook setup call can fall on a Sunday for UAE traders, or on a Friday for Saudi traders.

Saudi stock traders can also connect TradingView to Derayah. For a longer walkthrough of the webhook side, read our TradingView alerts to MT5 guide.

Tools that work well with it

If some of your signals arrive on Telegram instead, our Telegram to MT4/MT5 copier turns those messages into orders on your own account with the same risk rules. To send one alert to several accounts you own, add our MT4/MT5 trade copier. On a funded challenge, our prop firm risk manager can enforce your daily loss and drawdown limits next to the copier.

Still need the strategy itself? Our Pine Script developer service writes it with copier-ready alerts. TradingView explains its own webhook rules in the official webhooks article. When you are ready, contact us with your alert list and your platform.

Sources

Official pages we used to check this page, accessed 17 Nov 2026:

Frequently asked questions

Can TradingView connect to MT4 or MT5 on its own?

TradingView has no built-in link that places MT4 or MT5 orders. A TradingView to MT4/MT5 copier fills that gap: your alert sends a webhook, and an EA in your terminal opens the trade.

Do I need a paid TradingView plan for webhooks?

TradingView offers webhook alerts on paid plans only, and it allows them only after you turn on two-factor login. Plan names and limits change, so check TradingView's current pricing page before you subscribe.

How fast is a TradingView to MT4/MT5 copier?

In normal conditions the trip from alert to order usually takes a few seconds. Busy news minutes can stretch that, and those are the moments when the EA's price-gap check is most likely to skip a trade.

What happens if my VPS or my MT4/MT5 terminal is offline?

While the terminal is off, nothing can trade, although the listener keeps a record of every alert that arrives. Once the EA reconnects, it checks the age of each queued alert against your limit and drops the old ones, so a backlog never fires all at once.

Does the webhook message contain my broker password?

The message carries only the trade instruction and a secret token. Your MT4 or MT5 login stays inside your own terminal, and the listener rejects any request without the right token.

Will my MT4 or MT5 trades match my TradingView backtest?

They will be close, not identical. TradingView and your broker use different price feeds, spreads and fills, which leaves small gaps in entry price and timing. Judge the copier on a demo account before you compare it with the backtest.

Can my alerts trade only during Gulf hours?

You can set the trading window in two places. In Pine Script, an alert outside your hours never fires at all. In the EA, an alert that arrives outside your hours is ignored, which still protects you if someone edits the alert later.

Does the copier work on a swap-free account?

The copier only sends and manages orders, so the account type doesn't change how it works. What can change is the gold symbol: some brokers give swap-free accounts their own suffix, and we copy the names from that exact account.

Can my alerts trade on my MT4 and MT5 accounts at the same time?

It can, as an extra. The listener feeds an MQL4 EA and an MQL5 EA side by side, each with its own symbol map and log. We quote that setup on top of the $150 single-platform tool.

WhatsApp · Email · Telegram

Tell us which tool you need

Send your source and platform on WhatsApp. We set the tool up for your rules, and you test it on demo before you pay in full.