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

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:

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:

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:

  1. Server receives the signal. Check your iNakaTrader dashboard → Recent Signals. You should see the alert appear within a second.
  2. 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

Next steps

Once you have one strategy running reliably, you can:

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 →