If you have a TradingView strategy you trust and an MT5 broker you use, this guide gets the two talking in about ten minutes. No coding, no FIX protocol, no custom server infrastructure — just alert config, EA installation, and a license key.
Before we start: we'll use iNakaTrader as the signal bridge because that's what we build and know cold. The same general flow works with any TradingView alert to MT5 bridge; the specifics of fields and file paths will differ. If you want the full picture of how this architecture works under the hood, read our pillar guide on TradingView webhooks to MT5 first.
What you'll need
- A TradingView account (any tier — Basic works for URL-token auth)
- An MT5 account with your broker, plus the MT5 terminal installed on Windows
- An iNakaTrader license key (or equivalent from another bridge)
- A VPS if you want 24/7 execution (optional for testing — your desktop works fine while MT5 is open)
Ten minutes is realistic if you already have those. Add another 5–10 if you need to set up a VPS or install MT5.
Step 1: Get your webhook URL and license key
Log in to your iNakaTrader dashboard. You'll see a panel labeled Your Webhook with two values:
- Webhook URL — looks like
https://inakatrader.com/webhook?token=a7f3...(64 hex characters aftertoken=) - License Key — looks like
KEY-A1B2C3D4E5F6G7H8
Copy both. Treat the webhook URL like a password — anyone with it can fire signals into your account.
Step 2: Install the iNakaTrader EA in MT5
Open MT5 and hit File → Open Data Folder. Windows Explorer opens the MQL5 directory. Drop the iNakaTrader.mq5 file (downloaded from your dashboard) into:
MQL5/Experts/iNakaTrader.mq5
Back in MT5, right-click the Expert Advisors section in the Navigator panel and choose Refresh. You should see iNakaTrader appear.
Drag it onto any chart. A config dialog opens with fields including:
- LicenseKey — paste the key from Step 1
- ServerURL —
https://inakatrader.com(the base, no path) - MagicNumber — any unique integer (e.g.
12345) that identifies this strategy - AllowAlgoTrading — check this
- AllowDLLs — check this (required for HTTPS requests)
In MT5's top toolbar, make sure AutoTrading is enabled (it turns green). In Tools → Options → Expert Advisors, tick Allow WebRequest for listed URL and add https://inakatrader.com. Without this, the EA can't contact the server.
Click OK. The EA is now live on that chart and polling for signals every 500ms.
Step 3: Create the TradingView alert
Open your Pine Script strategy in TradingView. Click the alarm-clock icon to create a new alert. In the dialog:
Condition: Your strategy or indicator (whatever generates the signal)
Notifications tab → Webhook URL: Paste the webhook URL from Step 1
Message body:
{
"key": "KEY-A1B2C3D4E5F6G7H8",
"magic": 12345,
"alert_name": "alertS",
"action": "START BUY",
"symbol": "{{ticker}}",
"price": {{close}}
}
Replace key with your license key and magic with the number you used in the EA config. The alert_name field controls iNakaTrader's state machine — alertS with "action": "START BUY" enables long entries on this strategy.
Click Create. TradingView will now POST this body to the webhook URL every time the alert condition fires.
Step 4: Fire a test signal
The safest way to test is to create a second alert that fires on demand, outside your real strategy logic. Pick something trivial like "crossing above 0" on a simple moving average.
When the test alert triggers, two things should happen:
- Server receives the signal. Check your iNakaTrader dashboard → Recent Signals. You should see the alert appear within a second.
- EA picks it up. Within 500ms of the signal landing in the queue, the EA polls, gets the signal, and either executes it (if it passes validation) or logs why it didn't.
If the dashboard shows the signal but no trade fires, open MT5 → Terminal → Experts tab and look at the EA's log output. Common reasons: market closed, AutoTrading disabled, insufficient margin, magic-number mismatch.
Step 5: Go live with your real strategy
Once the test signal works end to end, delete the test alert and enable your real Pine Script alert. Monitor the first few live signals closely — watch them appear in the dashboard, watch the EA pick them up, watch the orders fill in MT5.
Common errors and fixes
- "WebRequest failed" in EA log — You didn't add
https://inakatrader.comto the allowed URLs list in MT5 options. Fix inTools → Options → Expert Advisors. - "Invalid license" on every signal — License key in the alert body doesn't match the EA config. Both must match exactly, character for character.
- "No route for magic X" — The Magic Number in the alert body doesn't match any running EA. Either fix the alert body or reload the EA with the correct number.
- Signal arrives but no trade — Check MT5's AutoTrading toggle (green button top of screen), the broker's market-hours status for that symbol, and the account's free margin.
- Duplicate trades from one alert — Your Pine Script is repainting on the current bar. Use
barstate.isconfirmedin your alert condition, or switch to a non-repainting indicator. - HTTP 429 / rate limit hit — You're firing alerts faster than the webhook accepts. Default limit is 60 per minute per IP. Slow your strategy or talk to support about a higher limit.
Next steps
Once you have one strategy running reliably, you can:
- Add more Magic Numbers. Each one is an isolated strategy context — a second EA on a different chart with a different Magic Number runs independently, even on the same account.
- Add TP/SL/trailing stop. iNakaTrader's EA supports per-strategy TP, SL, breakeven, trailing stop, and up to 4-level partial take-profits. Configure in the EA's input panel.
- Schedule a daily reset. Add a TradingView alert that fires
alertResetat a fixed time each day to clear strategy state and start fresh. - Upgrade auth to HMAC. When you move serious capital, switch from URL token to HMAC signatures. See our webhook security guide for the tradeoffs.
FAQ
Do I need to leave my PC on 24/7? Only if MT5 is running there. The standard setup is to put MT5 on a cheap VPS so it stays connected regardless of your local machine. Most brokers offer a free VPS to funded accounts.
Can I run multiple strategies from one TradingView alert? No, each alert targets one Magic Number. Run multiple alerts (one per strategy) each with its own Magic Number. The EA can handle many Magic Numbers concurrently.
What TradingView plan do I need? Basic works if you use URL-token auth and fewer than 10 alerts. If you want HMAC-authenticated webhooks or more alerts, Premium is recommended.
Does this work with prop firm accounts? Yes, as long as the prop firm allows EAs and automated trading. Most do, but check your specific firm's rules before going live.
Ready to get set up? Start your iNakaTrader trial →