Guide
How to automate your TradingView strategy on MetaTrader 5
You’ve built a strategy that works on TradingView. Now you want it to trade your MT5 account on its own — accurately, every time, without you glued to a screen. Here’s how that actually works, what tends to go wrong, and how to make it dependable.
Why automate at all
Most trading edges are small and fragile. They depend on doing the same thing, the same way, every single time the setup appears — at 9am or 3am, on a green day or a red one. The trouble is that humans are terrible at exactly that. We hesitate, we widen a stop “just this once,” we miss the alert because we were in a meeting, or asleep, or simply tired of staring at charts.
Automation closes that gap. When the rules live in software, the entry that looked great in your backtest is the entry you actually get — not a worse version of it filtered through your mood. You stop being the bottleneck, and your strategy gets to be itself.
The goal isn’t to trade more. It’s to trade your plan exactly — and get your life back while you do it.
How TradingView talks to MetaTrader 5
TradingView and MetaTrader 5 are great at two different jobs. TradingView is where you build and watch your strategy — the charts, the indicators, the signals. MetaTrader 5 is where the money actually moves: it’s connected to your broker and places the real orders. The catch is that the two don’t talk to each other out of the box. Something has to carry the message across.
That “something” is a webhook. It sounds technical, but the idea is simple: when your strategy triggers, TradingView fires off a tiny message — “buy EURUSD now” — to a web address you give it. Whatever lives at that address reads the message and places the trade on MT5. That’s the whole trick. Your alert becomes an instruction, and the instruction becomes an order.
So the pipeline is always the same three beats: your strategy signals, a webhook carries the signal, and a piece of software executesit on MetaTrader 5. Get those three working reliably and you have hands-free trading. The hard part — as anyone who’s tried it will tell you — is the “reliably.”
The DIY route — and why it breaks
You can wire this up yourself. The usual recipe is a small script running on a Windows VPS, sitting between TradingView and MT5, listening for webhooks and pushing orders through MetaTrader’s API. Plenty of traders start here, and for a quiet afternoon it feels like magic.
Then real life shows up. The VPS reboots after an update and the script doesn’t come back. MetaTrader freezes mid-session and quietly stops filling orders. A webhook arrives twice and you get a double position. An alert fires while you’re asleep, fails, and you find out at breakfast. None of these are exotic — they’re the normal weather of running software 24/7. And every one of them happens at the worst possible moment, because the market doesn’t wait for you to notice.
The script itself is the easy 80%. The reliability — reconnecting, recovering, de-duplicating, monitoring, and telling you when something genuinely needs you — is the hard 20% that decides whether you can actually trust it with money.
Writing the automation is a weekend project. Trusting it with real capital is a different problem entirely.
Where Bullion comes in
Bullion is that hard 20%, done for you. It’s the dependable bridge between your TradingView strategy and your MetaTrader 5 account — without the script, the babysitting, or the 3am surprises.
You connect your MT5 account once and point your TradingView alerts at Bullion. From then on, every signal becomes a real order, placed in your own broker account — Bullion never holds your funds. If your connection drops or MetaTrader freezes, Bullion notices and recovers on its own. If TradingView sends the same alert twice, it quietly ignores the duplicate. And everything — every position, every fill, every account — lives on one dashboard you can open from your phone.
Signals become trades, instantly
Your alert fires; the order lands on MT5 in well under a second — exactly as your plan intended.
It recovers on its own
Dropped connection or a frozen platform? Bullion reconnects and picks up where it left off.
Every account, one screen
Watch P/L, positions, and health across all your accounts in real time — and close any trade with a tap.
Your money stays put
Bullion places trades in your broker account. It can never withdraw or move your funds.
Setting it up, start to finish
The whole thing takes about ten minutes, and you won’t write a line of code:
- 1
Create your account
Sign up, pick the plan that matches how many accounts you run, and verify your email. Your dashboard is ready immediately.
- 2
Connect MetaTrader 5
Copy a connection key from your dashboard and paste it into the Bullion Connector on the computer where MT5 runs — or let us host it for you. Log in to MT5 once, and your account appears automatically.
- 3
Point your strategy at Bullion
Copy your webhook link from the dashboard, create an alert in TradingView, paste the link, and drop in a short alert message that says what to trade and which way.
- 4
Let it run
That’s it. Every signal now becomes a real trade, watched and recovered automatically. You just keep an eye on the dashboard.
Want the click-by-click version? The Quick Start walks through every screen, and Connect TradingView covers the alert setup in detail.
Habits of a reliable setup
Automation rewards a little discipline up front. A few habits that separate setups that quietly work from setups that quietly don’t:
Match your symbol names.The single most common cause of a rejected order is a symbol mismatch — TradingView’s “GOLD” is often “XAUUSD” at your broker. Use the exact name MetaTrader 5 shows, and trades go through cleanly.
Test on a demo account first.Run your strategy live on a demo for a week before risking real money. You’ll see exactly how your alerts behave in the wild, with zero downside.
Keep your alert messages simple. Tell the system what to trade and which direction. Resist the urge to cram logic into the alert — let your strategy make the decisions and let the alert just carry the verdict.
Decide your risk in the strategy, not in the moment. The whole point of automating is removing in-the-moment improvisation. Set your size and stops in the plan, and let the machine honor them.