How to Automate TradingView to MT5 in 4 Easy Steps
From downloading the Expert Advisor to executing your first automated webhook order. No coding knowledge or complex VPS server configuration required.
Download & Install the TradeLynk MT5 Expert Advisor
Our lightweight MQL5 EA runs directly inside MetaTrader 5. It uses native timers and WebRequests without opening any dangerous incoming firewall ports.
Action Checklist
- Open MetaTrader 5 on your PC, Mac, or VPS.
- Click File → Open Data Folder → MQL5 → Experts.
- Paste the downloaded TradeLynkEA.ex5 file into the folder.
- In MT5, go to Tools → Options → Expert Advisors, check 'Allow WebRequest' and add https://api.tradelynk.io.
Enables MT5 to communicate over SSL port 443 safely.
Attach the EA to Any Chart & Paste Your Secret Key
TradeLynk generates a unique 256-bit encrypted API Secret Key in your dashboard to securely authenticate only your personal TradingView alerts.
Action Checklist
- Restart or refresh the Navigator panel in MT5.
- Drag TradeLynk EA onto any active chart (e.g. EURUSD).
- Paste your unique Secret Key in the Inputs tab.
- Ensure 'Algo Trading' is toggled ON in the top MT5 toolbar.
SecretKey = "tl_live_79a2...98f"
TimerIntervalMs = 200
AutoEnforceStopLoss = true
Create an Alert in TradingView with JSON Payload
Whether you use Pine Script strategies, commercial indicators (LuxAlgo, MarketCipher), or simple trendline alerts, TradeLynk processes all formats.
Action Checklist
- Click the Alert icon (clock) on your TradingView chart.
- Under Notifications, check the 'Webhook URL' box.
- Set Webhook URL: https://api.tradelynk.io/v1/webhook.
- In the Message box, paste your customized JSON command payload.
{
"key": "your-secret-key",
"action": "buy",
"symbol": "EURUSD",
"risk": 1.0,
"sl": 25,
"tp": 50
}Automated Execution & Instant Audit Telemetry
Sit back and let TradeLynk manage order execution, slippage mitigation, and stop-loss enforcement 24 hours a day, 5 days a week.
Action Checklist
- Order executes inside MT5 terminal in milliseconds.
- Real-time execution receipt delivered via Telegram.
- Review slippage, fill latency, and P&L logs in your TradeLynk terminal.
- Prop firm stop loss guardrails automatically verified.
🟢 BUY FILLED: 2.50 Lots EURUSD
Price: 1.08450 • SL: 1.08200 • TP: 1.08950
Ingest Latency: 12ms • Ticket: #4920194
Running on a Forex VPS vs Local Computer
TradeLynk works seamlessly on your personal laptop or desktop, as well as on any Windows Forex VPS.
If you plan to run automated strategies 24/7 without keeping your personal computer powered on, we recommend any low-latency Forex VPS located near your broker's server (typically London LD4 or New York NY4). The TradeLynk EA consumes less than 15 MB of RAM and negligible CPU.
Ready to Connect Your MT5 Terminal?
Sign up now for your 7-day unrestricted trial. Generate your secret key and run your first test order in minutes.