Skip to content
chartTrigger
How it works Blog Demo Features Pricing Contact
Sign in Get started
How it works Demo Features Pricing Questions Contact Sign in

Home/The Trigger Line

Automation

TradingView Alerts to MT5: How to Turn an Alert Into a Real Order

15 September 20269 min read

Why TradingView cannot place an MT5 order The four ways people actually bridge it The four problems with a webhook relay nobody mentions The other way round: put the rule next to the terminal Keeping your Pine Script: Open Line You do not have to place orders at all Common questions

TradingView is where most traders draw. MetaTrader 5 is where most retail traders execute. Nothing official connects the two, which is why "TradingView alerts to MT5" is one of the most-searched questions in retail trading — and why most of the answers you will find are duct tape.

Why TradingView cannot place an MT5 order

A TradingView alert is a notification, not an instruction. When your condition is met, TradingView can pop a browser toast, send an email, push to the mobile app, or POST a webhook to a URL you supply. That is the entire list. It has no connection to your broker account, no knowledge of your balance, and no way to submit an order ticket.

MetaTrader 5, on the other side, executes only through its own terminal — an Expert Advisor running inside it, or a process driving the terminal's API. TradingView cannot reach into that terminal, and MT5 has no inbound webhook listener. So every "TradingView to MT5" solution is really a third piece of software sitting in the middle, listening for the webhook and translating it into an order.

The four ways people actually bridge it

MethodWhat it isWhere it breaks
Manual Alert hits your phone, you open MT5 and click. Latency is however long you take to notice. Useless while asleep, and the reason most people start looking for automation.
Webhook relay service A hosted service receives the TradingView webhook and forwards it to an EA in your terminal. Two extra hops and two extra failure points. If the relay is down or rate-limits you, the alert vanishes silently — TradingView will not retry it.
Self-hosted listener + EA You run a small server on a VPS, plus a socket/file-reading EA in the terminal. You now own a VPS, a public HTTPS endpoint, an EA, and the job of keeping all three alive. Most abandoned setups die here.
Define the rule where execution lives Skip the relay: the condition is evaluated next to the terminal that will place the order. You give up Pine Script's full expressiveness for a rule vocabulary. Covered below.

The four problems with a webhook relay nobody mentions

If you are set on the relay route, know what you are signing up for. These are not hypotheticals; they are the recurring support questions in every bridging product.

  • Fire-and-forget delivery. TradingView sends the webhook once. There is no delivery receipt and no retry. If your endpoint is restarting, mid-deploy, or briefly unreachable, that signal is simply gone and you will not find out until you wonder why a trade never opened.
  • The alert can fire on an unclosed bar. A TradingView alert set on a condition rather than on barstate.isconfirmed can fire on a wick that the candle then takes back. The relay has no idea that happened; it faithfully places a real order on a breakout that never existed.
  • Price disagreement. TradingView's chart feed and your broker's feed are different markets. A level set by eye on BITSTAMP:BTCUSD is not the same number your broker quotes, and on crypto that gap runs to tens of dollars. The relay passes along a price that your terminal may never have seen.
  • No state across restarts. Most relay EAs keep their "already fired" flags in memory. Restart the terminal and a rule that should have fired once can fire again immediately — cooldowns reset, maximum-fire caps reset.
The short version. The webhook is not the hard part. The hard parts are delivery guarantees, bar confirmation, which feed defines the price, and what happens after a restart — and a relay solves none of them.

The other way round: put the rule next to the terminal

chartTrigger takes the opposite approach. Instead of drawing on one platform and relaying a message to another, you draw the level on a chart inside chartTrigger and the same system evaluates it and places the order. There is no webhook in the middle because there is no gap in the middle.

Concretely, that removes each failure above:

  • No delivery to lose. The evaluator and the MetaTrader 5 terminal are part of one system. Nothing is posted across the public internet and hoped for.
  • Bar confirmation is a checkbox. Turn on confirm on close and the trigger reads closed bars only, so a wick through your level cannot fire it. A retest condition is treated as a genuine crossing — price closed on one side and then moved beyond the other by your tolerance band — not merely "price is currently below the line".
  • The chart and the rule agree on price. When the chart is drawing a specific exchange's symbol, the rule is evaluated against that same market wherever it can be served. Where no matching display symbol exists, the price strip shows the price the rule is actually using, so the number on screen is the number that fires.
  • Fire state survives a restart. Arming stamps the rule, and fires recorded since that arming are replayed into memory after any restart. Cooldowns and maximum-fire caps hold. A rule re-armed on a still-true condition starts closed, so an existing state is never mistaken for a fresh trigger.

Keeping your Pine Script: Open Line

Pine Script is a programming language and a rule builder is not, so some strategies genuinely belong in TradingView. If yours does, you do not need a separate relay service either. Every chartTrigger rule can use an Open Line trigger: a private URL that your TradingView alert POSTs to, in place of the rule watching price itself.

What happens when the signal arrives is the part worth knowing:

  • The webhook is the trigger, not a bypass. The rule's own conditions — spread, session, exposure, whatever you set — are still checked before anything executes. A signal that arrives in the wrong session or on a blown-out spread does not become an order.
  • Only an armed rule accepts it. A disarmed rule, or one whose trigger is not an inbound webhook, refuses the request with the reason.
  • Every request is recorded, accepted or refused, with the reason. TradingView will not tell you a delivery failed; the inbound-webhook log on your side will.
  • The URL is the credential. There is no session, so treat it like a password: paste it into the TradingView alert and nowhere else.

Rules that watch price themselves — levels, crossings, retests with a tolerance band, indicator conditions, time windows — are the simpler route and skip the hop entirely. Open Line is for the strategy that has to stay in Pine.

You do not have to place orders at all

A large share of people searching for this want the alert, not the automation — they want to be told, accurately, and then decide themselves. chartTrigger runs in alert-only mode, and it does so without any broker account connected, on a free live public market feed. The alert arrives with a picture of the candles the engine actually evaluated, with your level and a marker on the bar that fired.

There is also Ghost Mode: the rule runs end to end, records what it would have done, and no order ever reaches a broker. It is the honest way to watch a rule for a fortnight before trusting it.

Common questions

Can I still use TradingView charts?

Yes. chartTrigger embeds the TradingView widget as one of three chart renderers, alongside two native engines. When no broker account is connected it opens on the TradingView widget with live public prices.

Do I need a VPS for this?

No. The MetaTrader 5 terminals are provisioned and supervised on chartTrigger's infrastructure — signed in, restarted if they stop, reconnected if the broker drops. Nothing runs on your machine, so closing the laptop changes nothing.

Does it work with my broker?

Any broker offering a retail MetaTrader 5 account. It drives the ordinary client terminal, so there is no broker-side integration to arrange and nothing for your broker to approve.

Is there a way to test the rule before arming it?

Yes — the Proving Ground runs it over historical bars with the same evaluator the live engine uses, under spread and slippage assumptions you state. It is a historical simulation for finding broken logic, not a forecast. See backtesting without writing code.

Skip the relay

Draw the level where the order gets placed. Alert-only and Ghost Mode need no broker account at all, so you can watch a rule behave before you trust it with anything.

Create a free account

Read next

  • How to Set a Trendline Break Alert on MetaTrader 5 (Without an EA)
  • Why Your Breakout Alert Keeps Firing on a Wick (and How to Stop It)
  • Free Forex and Crypto Price Alerts Without Connecting a Broker
  • MetaTrader Simulator Without an EA: Test a Rule Instead of Writing MQL5

Risk note. This article is educational material about how chartTrigger works. It is not investment advice, not a recommendation to trade any instrument, and nothing here forecasts results. Trading leveraged products carries a high risk of loss. Any historical simulation referred to is exactly that — a run over past bars under stated spread and slippage assumptions, not an indication of future performance.

chartTrigger

Draw a level on the chart. It executes itself, everywhere.

Product

How it works Walkthrough Features Pricing

Account

Create an account Sign in Plans and billing

Company

Blog Contact Questions

Legal

Terms of Service Privacy Policy Refund Policy Risk Disclosure Cookie Policy

Risk warning. Trading leveraged products carries a high level of risk and can result in losses that exceed your deposits. chartTrigger is execution and alerting software: it carries out rules you define and does not provide investment advice, recommendations or managed trading. Proving Ground output is a historical simulation with the spread and slippage assumptions stated on each run, not a forecast and not an indication of future results. You are responsible for every rule you arm and every order it sends. Only trade with money you can afford to lose.

2026 SOFTSHORE TECHNOLOGY LTD, trading as chartTrigger. 128 City Road, London, United Kingdom, EC1V 2NX