How to Connect TradingView to MT5: The Complete 2026 Guide

Image Source : Unsplash / Aedrian Salazar “a close up of a stock chart on a computer screen”
Why TradingView Can't Trade MT5 Directly
TradingView is a charting platform. MetaTrader 5 is an execution platform. They're built by different companies and speak different languages. TradingView uses webhooks and Pine Script, MT5 uses MQL5 and Expert Advisors. There is no native bridge between them.
The solution is a relay: a tool that listens to TradingView alerts and forwards trade commands to your MT5 account. That's what PineConnector does. Your alert triggers a webhook, PineConnector receives it, and the EA in your MT5 terminal executes the order which is typically in under a second.
One EA, unlimited symbols. You do not need to attach PineConnector to every chart in MT5. A single EA instance handles all your instruments once it's connected to your account.
What You Need Before You Start
Have these ready before working through the steps below:
| Requirement | Details |
|---|---|
| TradingView account | Any paid plan (alerts with webhooks require at least the Essential tier) |
| MetaTrader 5 terminal | Installed and logged into your broker account (demo or live) |
| PineConnector account | Start your free 14-day trial at pineconnector.com |
| PineConnector License ID | Found in the Connections section of your portal after signing up |
The 9-Step Setup Process
Step 1 : Download the PineConnector EA
Log into the PineConnector Portal and go to the Downloads tab. Under "MT5 EA," click Download. You'll receive a .zip file containing two files you'll need in the next step.
Step 2 : Open the Experts Folder in MT5
In MetaTrader 5, click File → Open Data Folder from the top menu. Navigate into the MQL5 folder, then into the Experts folder inside it. This is where MT5 looks for Expert Advisors.
Step 3 : Add PineConnector Files to the Experts Folder
Extract the .zip you downloaded in Step 1 directly into the Experts folder. Make sure both of these files land at the root of the Experts folder, not inside a sub-folder:
PineConnector-MT5-DLLPineConnector-MT5-EA

Step 4 : Allow Algorithmic Trading and DLL Imports
In MT5, click Tools → Options, then open the Expert Advisors tab. Tick both Allow Algorithmic Trading and Allow DLL imports, then click OK.
You do not need to add any WebRequest URLs for MT5. PineConnector doesn't require them.
Step 5 : Enable Algo Trading in the Toolbar
Find the Algo Trading button in the MT5 toolbar. If it's red, click it. It should turn green. A red button means no EA can execute trades, regardless of any other settings. This step is easy to miss and worth double-checking every time you restart the terminal.
Step 6 : Attach the EA to a Chart
Open the Navigator panel with Ctrl+N (or View → Navigator). In the panel, right-click Expert Advisors and select Refresh. Find PineConnector MT5 EA in the list, right-click, and select Attach to Chart. Any chart will do, it doesn't matter which symbol or time frame.
Step 7 : Configure EA Settings
The EA properties window will open. Under the Common tab, tick Allow Algo Trading. Under the Dependencies tab, tick Allow DLL imports. Both must be enabled for the EA to function.
Step 8 : Input Your License ID
Go to Connections in the PineConnector Portal and copy your License ID. Back in the EA properties window, open the Inputs tab and paste it into the License ID field. Click OK, the EA will immediately attempt to connect.
Your PineConnector license is an Auto-Roaming License, so you can use the same ID across MT4, MT5, demo, live, and prop firm accounts without additional setup.
Step 9 : Verify the Connection in Your Portal
Return to the Connections page in the PineConnector Portal. Your MT5 account should now appear as a connected trading account. Click into it to see the full account details and confirm everything looks correct.
Set a custom name for each connection if you manage multiple accounts or strategies, it makes it much easier to identify which account you're reviewing in logs or need to disconnect.
Before going live: Send test alerts from PineConnector's portal to confirm orders are being received and executed correctly. Don't skip this. A two-minute test on a demo account saves real money if something is misconfigured.
Configuring TradingView Alerts to Send Orders
With the EA running, you now need TradingView to send structured alert messages that PineConnector can parse and execute. In TradingView, open the alert creation dialog and set the webhook URL to https://webhook.pineconnector.com
Your alert message must follow PineConnector's command syntax. A basic market buy order looks like this:
// Buy using 1% account risk on EURUSD
licenseID,buy,EURUSD,vol_pct_bal_loss=1,sl=50,tp=100
// Or using a fixed lot size:
licenseID,buy,EURUSD,risk=0.1
PineConnector reads the license ID, ticker, direction, and risk parameters from each alert message. Check the full syntax documentation here for all available parameters including stop loss, take profit, trailing stops, and partial close commands.
Tips for alert reliability
Set your alert to trigger on bar close rather than intrabar. This prevents duplicate orders when price crosses a level multiple times within the same candle.
Common Issues and Fixes
| Symptom | Most Likely Cause | Fix |
|---|---|---|
| EA appears in chart but no trades execute | Algo Trading button is red in toolbar | Click the Algo Trading button in the MT5 toolbar until it turns green |
| EA doesn't appear in Navigator after refresh | Files placed in a sub-folder inside Experts | Move both files to the root of the Experts folder |
| Connection not showing in portal | License ID entered incorrectly, or DLL imports not allowed | Re-copy the License ID from Connections page; confirm DLL imports are ticked in both places |
| Alerts fire in TradingView but no orders appear | Wrong webhook URL or alert message syntax error | Verify the webhook URL is https://webhook.pineconnector.com |
| Error 4756 — unsupported filling mode | Broker uses a non-standard order filling mode | Adjust the filling mode parameter in EA settings to Automatic |
What to Do After Setup
Once the connection is verified, build your alert conditions in TradingView and make sure the message syntax matches the positions you want to open and close. If you're automating an existing indicator, Supertrend, MACD crossover, moving average signals, add alertcondition() calls and set the alert to trigger on bar close.
For prop firm accounts (FTMO, The Funded Trader, and similar), use risk-based sizing (vol_pct_bal_loss=1 for 1% account risk per trade) to stay within daily drawdown limits. And if you run multiple accounts, the same License ID works across all of them simultaneously. All you need to do is to just install the EA on each MT5 instance.
Start your free 14-day trial with us here and send your first automated trade from TradingView to MT5 today.