FREE & Open Source - Automated trading system that detects trades from TradingView Strategy Tester and executes them on MetaTrader 5 (MT5) via HTTP bridge in real-time.
This software executes real trades on your broker account automatically. Automated trading carries significant financial risk. You can lose your entire account balance, including amounts beyond your initial deposit if your broker offers leverage.
- The author is NOT responsible for any financial losses, account liquidations, margin calls, or damages of any kind resulting from use of this software.
- This is NOT financial advice and NOT a trading strategy. It is a technical automation tool only.
- Past performance in TradingView's Strategy Tester does NOT guarantee future results on a live account.
- Slippage, broker requotes, network latency, and platform outages can cause execution to differ significantly from what the backtester shows.
- Verify that automated/algorithmic trading is permitted by your broker's Terms of Service before use.
- Always test on a demo account first. Even after demo testing, live results may differ substantially.
By using this software, you accept full and sole responsibility for all trading decisions and their financial consequences.
Unlike paid solutions requiring:
- β TradingView Premium webhooks
- β File watchers (slow + error-prone)
- β Cloud VPS ($10-50/month)
This is:
- β 100% FREE - No subscriptions
- β HTTP Bridge - Lightning fast (<500ms latency)
- β Tiny Memory ~45MB - Minimal resource usage
- β No File I/O - Direct Chrome β Server β MT5
- β Production Ready - Waitress server
- β Smart Protection - Refresh and Rapid Trades Safe
TradingView Strategy Tester
β
Chrome Extension Detects
β HTTP POST
localhost:8080
β JSON Poll
MT5 WebRequest EA Executes
β
β
Trade on Your Broker
Total Latency: <500ms end-to-end!
- 3-minute full Installation & Setup Video of Trading-MT5-Bridge to automate Trades with Live Trade Example: https://youtu.be/Op9VwIgxM8o
- Real-time Detection - Monitors TradingView trades list
- Automatic Signal Extraction: Extracts BUY/SELL signals with SL/TP/LOT parameters
- HTTP Bridge - Chrome β localhost:8080 β MT5
- Signal Rejection - Prevents overwrites during processing
- Smart Filtering - Ignores refresh/false signals
- Robust Recovery - Auto-reconnects on tab close
- Clean UI - Minimal popup logger
- Windows OS (MT5)
- Chrome browser
- MetaTrader 5
- TradingView Free account (no premium needed!)
- Broker permission β Confirm your broker's Terms of Service allows automated/algorithmic trading before live use
- Run
TradingBridge.exe - β Click "Allow access" when Windows asks
- β If Blocked: Windows Defender β Allow through firewall
- Chrome β
chrome://extensions/β Developer mode - Load unpacked β Select
Tradingview Trade DetectorExtension - β Extension ready!
- Open
List of TradesTab in Strategy Tester - Click
View Site Informationon Top-left Corner - Allow
Local Network AccessPermission - To send Trades to Server
- Move
Trading_BotFolder to:
C:\Users\YourUsername\AppData\Roaming\MetaTrader 5\MQL5\Experts\
- Add URL: In MT5 β Tools β Options β Expert Advisors β
http://127.0.0.1:8080 - Attach EA to chart β Tick Allow Algo Trading
- Enable Algo Trading (Green) β Button on Top Row
- Start
TradingBridge.exe- β Shows: localhost:8080 running - Load Chrome extension
- Open TradingView β Strategy Tester β List of Trades
- Open MT5 β Attach EA to any chart
- β Automation active!
β οΈ Important: Keep TradingView tab visible/foreground (Chrome extension needs it active)
- Signal appears β Trade executes automatically
- You can check All Trade Logs in TradingBridge.exe Dashboard
Add this code to your Pine Script strategy to send dynamic SL/TP/LOT values:
Entry name format required:
"BUY SL=<value> TP=<value> LOT=<value>"
"SELL SL=<value> TP=<value> LOT=<value>"
Example implementation:
// In your Long entry logic:
if (buyCondition)
// Calculate your SL/TP/LOT dynamically
sl_pips = math.round((entry - stop_loss) / pipsize)
tp_pips = math.round((take_profit - entry) / pipsize)
lot_size = calculated_lot_size
// Format entry name with SL/TP/LOT
entry_name = " BUY SL=" + str.tostring(sl_pips) + " TP=" + str.tostring(tp_pips) + " LOT=" + str.tostring(lot_size) + " "
strategy.entry(entry_name, strategy.long, qty=lot_size)
Similarly in your Short Entry Logic
Values should be in PIPS (not price levels).
If you don't modify your strategy
The MT5 EA will use default values from inputs.
Full: "BUY SL=50 TP=100 LOT=0.01"
Simple: "BUY" or "SELL"
Fallback: "long"βBUY, "short"βSELL
tradingview-mt5-bridge/
βββ TradingBridge.exe # HTTP server (pre-built)
βββ Bridge_Source/ # Python source for the server
β βββ bridge_server.py
βββ Trading_Bot/ # MT5 EA
β βββ TradingBot.mq5
β βββ TradingBot.ex5
βββ Tradingview Trade Detector (Extension)/ # Chrome extension
β βββ manifest.json
β βββ content.js
β βββ logger.html
β βββ logger.js
βββ DISCLAIMER.md
βββ LICENSE
Extension not detecting trades:
- Refresh TradingView page
- Verify "List of Trades" tab is open
Server errors:
β "Port 8080 already in use" β Close other apps using port 8080
β "Server offline" β TradingBridge.exe
β "WebRequest error" β Add http://127.0.0.1:8080 to MT5
MT5 not trading:
β AutoTrading red? β Click to enable (green)
β Experts tab errors? β Check logs
β Broker restrictions? β Test demo account
Rejected/False signals:
β
Extension ignores TradingView refresh
β
Server rejects pending signals
β
If Server Rejecting Legit Trades - Try Clean Old Signal
β
EA checks existing positions
β
No Multiple Trades - Only 1 at a Time Allowed
MT5 EA inputs:
LotSize=0.01
StopLossPoints=50
TakeProfitPoints=100
Q: Does this work with live trading? A: It can connect to a live account technically. However, all financial losses on live accounts are entirely your responsibility. Do not use on a live account until you have tested thoroughly on demo and fully understand the behavior. Live execution conditions differ from backtesting.
Q: Can I modify SL/TP after trade opens? A: Yes, But Recommended to modify before attaching to chart.
Q: Multiple strategies same time? A: One instance per symbol recommended.
β
100% Local - localhost only
β
No cloud - No external servers
β
Open Source - Full transparency
β
No API Keys - No third-party services
β
Your Credentials - Stay on your machine only
This software is provided for educational and personal use only. It is a technical bridge tool and does not constitute financial advice, investment advice, or a recommendation to trade any financial instrument.
Financial Risk: Automated trading involves substantial risk of financial loss. You may lose more than your initial investment. The author, contributors, and distributors of this software bear no responsibility for any direct, indirect, incidental, special, or consequential financial losses, account liquidations, or damages of any kind arising from the use or misuse of this software.
No Warranty: This software is provided "as is" without any warranty of any kind, express or implied. There is no guarantee of accuracy, reliability, fitness for a particular purpose, or uninterrupted operation. Trade execution latency, slippage, broker-side rejections, and software bugs may cause trades to execute differently than expected or not at all.
Not Financial Advice: Nothing in this software, its documentation, or any associated communications constitutes financial advice. All trading decisions are solely your own responsibility.
Regulatory Compliance: It is your responsibility to ensure that your use of automated trading software complies with applicable laws, regulations, and your broker's Terms of Service in your jurisdiction. The author makes no representation that this software is legal or permissible in any specific jurisdiction.
Backtesting vs Live Trading: Results shown in TradingView's Strategy Tester do not guarantee identical results on a live account. Live markets involve spread, slippage, and execution conditions not replicated in backtesting.
By downloading, installing, or using this software in any form, you acknowledge that you have read, understood, and agreed to this disclaimer in full.
β
Improved bridge server UI
β
Bug fixes and stability improvements
β
Python source code now included in repo
β
Expanded disclaimer and risk documentation
MIT License - See LICENSE file for details.
Copyright Β© 2025 Nishant Prakash Garg. All rights reserved.
β
FREE for personal/educational use
β
Commercial use allowed (with attribution)
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Issues & Questions:
- π Open an issue
- π¬ Check existing issues first
Commercial Support:
- π οΈ Installation assistance
- π Contact: contactme.ngone@gmail.com
If this project helped you, please star the repository!
It helps others discover this free alternative to paid services.
Built with β€οΈ by Nishant P.Garg
This is an independent project and is not affiliated with TradingView, MetaQuotes, or MetaTrader 5.