Quick start
Install the MetaTrader 5 Expert Advisor
- In MetaTrader 5, open
File → Open Data Folder, then go toMQL5 → Experts. - Copy the
TradeBridgeEA.ex5(or.mq5) file there and restart MT5, or refresh the Navigator. - In MT5, enable
Tools → Options → Expert Advisors → Allow WebRequest for listed URLand add your TradeBridge server URL. - Drag the EA onto any chart. In its inputs, paste your license key and confirm the server URL.
- Allow Algo Trading (the button in the toolbar). The account should show as connected on your dashboard within a few seconds.
Create a TradingView alert
- Open your chart/strategy in TradingView and click Alert (the clock icon).
- Set your condition as usual.
- Under Notifications, enable Webhook URL and paste:
https://tradebridge.live/api/webhook/tradingview
- In the alert Message box, paste your command (from the Alert Builder), e.g.:
BUY,EURUSD,VOLUME=0.10,SL=50,TP=100,KEY=TB-XXXX-XXXX
- Click Create. Done — when the alert fires, the trade is placed automatically.
Alert syntax reference
An alert message is a comma-separated command. The first token is the action, the second is the symbol, followed by optional KEY=VALUE pairs. KEY= (your license) is always required.
| Token | Meaning | Example |
|---|---|---|
BUY / SELL | Open a position in that direction | BUY |
CLOSE | Close the open position for the symbol | CLOSE |
| symbol | TradingView ticker (mapped to your broker symbol) | EURUSD |
VOLUME= / LOT= | Fixed lot size | VOLUME=0.55 |
RISK= | Size by % of account balance (uses SL distance) | RISK=1 |
SL= | Stop loss in pips | SL=50 |
TP= | Take profit in pips | TP=100 |
PRICE= | Entry price for pending orders (optional) | PRICE=1.0850 |
TRAIL= | Trailing-stop distance in pips | TRAIL=20 |
TRAILSTART= | Profit in pips before trailing activates | TRAILSTART=30 |
COMMENT= | Free-text label on the order | COMMENT=breakout |
KEY= | Required. Your license key | KEY=TB-XXXX-XXXX |
Examples
# Fixed-lot entry with SL/TP BUY,EURUSD,VOLUME=0.55,SL=50,TP=100,KEY=TB-XXXX # Risk 1% of balance with a trailing stop SELL,XAUUSD,RISK=1,SL=120,TRAIL=40,TRAILSTART=60,KEY=TB-XXXX # Close the open position CLOSE,EURUSD,KEY=TB-XXXX
Risk & sizing
Use VOLUME= for a fixed lot, or RISK= to size automatically from your stop-loss distance and account balance. You can also set default sizing and guard-rails (max lot, max open trades, daily-loss limits) per account using Risk Profiles in the app — these apply even when an alert omits sizing.
Trailing stops
Add TRAIL= to trail the stop by a fixed pip distance as price moves in your favour. Pair it with TRAILSTART= so trailing only begins after the trade is that many pips in profit — locking in gains while giving the trade room early on. Trailing is managed server-side and on the EA, so it keeps working between signals.
Multi-account copy trading
Attach several MT5 accounts to one license and a single alert is mirrored to all of them. Each account can have its own lot multiplier, risk multiplier, and optional inverse (reverse-direction) setting — ideal for managing multiple accounts or hedging.
Troubleshooting
My account shows "offline" / not connected
The test signal is "Rejected — Unknown license key"
KEY= value doesn't match an active license. Pick the correct license in the Alert Builder, or ask an admin to issue/activate one.Trade didn't open after the alert fired
EURUSD.m). Verify the market is open and your account has sufficient margin. The dashboard signal feed shows the reason for any rejection.