Overview
TradeEcho TV Sync connects TradingView strategy alerts to MetaTrader 5 follower accounts. Your Pine strategy formats webhook JSON via the StrategyWebhookJson library; TradeEcho ingests alerts into a virtual source account; the TV Slave EA mirrors open, close, and modify actions on each MT5 slave.
All three EAs (no conflicts)
You can run MT5 Copy and TV Sync on the same TradeEcho account. Use a dedicated MT5 terminal for each EA — never attach both slave EAs to the same account. The full deployment guide is in the dashboard setup wizard.
- Master Publisher (
MasterPublisher.mq5) — One MT5 master account only. POST /api/sync (publishes master positions). - Slave Subscriber (
SlaveSubscriber.mq5) — Each MT5 copy slave account. GET /api/positions (mirrors master). - TV Slave (
TVEchoSlave.mq5) — Each MT5 TV mirror account. GET /api/positions?source=tv (mirrors TradingView).
Rules
- Use the same TradeEcho User ID on every EA.
- Run MasterPublisher on exactly one terminal — your MT5 master account.
- Use SlaveSubscriber only on terminals that copy the master (MT5 Copy product).
- Use TVEchoSlave only on terminals that mirror TradingView signals (TV Sync product).
- Never attach SlaveSubscriber and TVEchoSlave to the same MT5 terminal.
- Run only one slave EA instance per terminal (one chart is enough — do not attach the same EA to multiple charts).
- Set a unique InpAccountLabel on every slave terminal (labels are shared across MT5 copy slaves and TV slaves).
- Enable Algo Trading on each terminal (and on VPS / virtual hosting if you use it).
- Allow WebRequest for https://ea-sync-production.up.railway.app in MT5 (Tools → Options → Expert Advisors).
- TradingView alert webhook URL: https://trade-echo.com/api/webhook (copy from dashboard setup).
Example: all three EAs at once: Terminal 1 — master → MasterPublisher ((optional label)); Terminal 2 — prop copy → SlaveSubscriber (FTMO_01); Terminal 3 — TV mirror → TVEchoSlave (TV_FTMO_01). TradingView alerts go to https://trade-echo.com/api/webhook — not through MasterPublisher.
Requirements
- TradingView Plus plan or higher (webhook URL field)
- 2FA enabled on your TradingView account
- Active TradeEcho subscription with TV Sync (Pro/Ultimate or Starter add-on)
Enable TV Sync
- Sign up and subscribe at TradeEcho, then open the dashboard setup wizard.
- Select the TradingView Sync tab.
- Copy your Webhook URL, webhook secret, and Pine import snippet.
Pine library
- Open the published StrategyWebhookJson library on TradingView (
lifestylemaniacsrt/StrategyWebhookJson). - Your strategy must start with
//@version=6on line 1 (libraries require Pine v6). - Use Copy to clipboard on the library page for the import line only.
Test strategy
Paste the entire Webhook Alert Test strategy below into a new Pine strategy (not an indicator). Replace the webhook secret from the setup wizard. Do not paste only the importline — that causes "Pine version unspecified" errors.
Webhook Alert Test (copy entire script)
//@version=6
strategy("Webhook Alert Test", overlay=true)
import lifestylemaniacsrt/StrategyWebhookJson/1 as wh
var wh.Config cfg = wh.init("YOUR_WEBHOOK_SECRET", wh.Mode.CloudOnly)
float fastMa = ta.sma(close, 14)
float slowMa = ta.sma(close, 28)
if ta.crossover(fastMa, slowMa) and strategy.position_size == 0
strategy.entry("Long", strategy.long,
alert_message = wh.openMsg(cfg, "Long", "buy", 0.1, close * 0.99, close * 1.02))
if ta.crossunder(fastMa, slowMa) and strategy.position_size > 0
strategy.close("Long",
alert_message = wh.closeMsg(cfg, "Long"))Use echo.Mode.CloudOnly for webhook-only testing. Pass the cfg object from init() into openMsg and closeMsg.
Alert configuration
- Apply your strategy to a chart.
- Create alert → Condition: your strategy → Order fills only.
- Message field:
{{strategy.order.alert_message}} - Enable Webhook URL and paste your dashboard webhook URL (
https://trade-echo.com/api/webhook). - Trigger: Once per bar close (recommended).
MT5 TV Slave EA
- Install TradeEcho TV Slave Subscriber from MQL5 Market.
- Attach the EA to one chart on each MT5 follower account.
- Set
InpUserIdto your TradeEcho User ID and a uniqueInpAccountLabelper slave. - Enable Algo Trading and allow WebRequest for
https://ea-sync-production.up.railway.app(Tools → Options → Expert Advisors).
The EA uses built-in endpoints on https://ea-sync-production.up.railway.app: /api/positions?source=tv and /api/sync. TradingView alerts use https://trade-echo.com/api/webhook.
Rate limits
TradingView may throttle alerts (~15 per 3 minutes). TradeEcho deduplicates retries by signalId.
Security
- Never put broker credentials in the alert message.
- Rotate your webhook secret from the dashboard if exposed.
Troubleshooting
- Pine version unspecified or
importerrors: add//@version=6as line 1 and paste the full Webhook Alert Test strategy, not only the import line. - Run only one source per slave EA — do not mirror MT5 master and TV signals on the same slave simultaneously.
- Confirm TV Sync is enabled on your plan before using the setup tab.

