Back to Blog
tradingview to mt4tradingview alertsautomationsignal copiermt5pine script

How to Turn TradingView Indicator Alerts Into Auto-Executed MT4/MT5 Trades

A step-by-step guide to routing a TradingView indicator's alerts to MetaTrader — so entries, take-profits, break-even and trailing all execute automatically on your broker account.

2026-07-19 8 min readBy TradeJournal Team

You've got a TradingView indicator you trust. It fires clean setups with entry, stop, and targets. But TradingView can't place trades on your broker — it can only show alerts and send messages. So how do you get from "an alert popped up" to "the trade is live on my MT5 with the stop and take-profits already set"?

This guide walks through the full chain.

Why TradingView alone isn't enough

TradingView is a charting and alerting platform, not a broker. Its webhook alerts can POST a message to a URL when a condition triggers, but something on the other end has to receive that message, understand it, and place the order on your account. That "something" is a signal copier connected to MetaTrader (or cTrader).

The chain looks like this:

Indicator fires → TradingView alert → webhook → copier → MT4 / MT5 order

Get each link right and the whole thing runs unattended.

Step 1 — Use an indicator that emits structured alerts

Not every indicator is built for automation. You want one whose alerts contain the actionable trade — direction, entry, stop, and take-profits — not just "signal on XAUUSD." The TradeJournal Pro indicators, for example, emit a ready-to-parse message on every new setup:

BUY XAUUSD NOW
Entry 2412.50
SL 2404.00
TP1 2421.00
TP2 2430.00
TP3 2445.00

They also fire follow-up alerts as the trade develops — each take-profit hit, stop moves to break-even, trailing adjustments (MODIFY SL), and the final close — so the copier can manage the position, not just open it.

Step 2 — Get your webhook URL

In your copier, generate your personal webhook endpoint. With TradeJournal Pro it looks like:

https://tradejournalpro.net/api/signals/webhook?token=YOUR_TOKEN

The token identifies your account, so signals route to your broker connection and nobody else's. You can add &source=my-indicator to label where the signals came from.

Step 3 — Create the alert in TradingView

  1. Add the indicator to your chart and configure it.
  2. Right-click the chart → Add alert.
  3. Condition: select the indicator, then Any alert() function call (this uses the indicator's own pre-formatted messages — you don't have to write anything).
  4. Notifications → Webhook URL: paste your copier webhook URL.
  5. Save.

That's it. When the indicator fires, TradingView POSTs the message to your copier.

Tip: If you also forward alerts to Telegram or a tool like Make.com, keep the indicator's message format on Text. Only switch to JSON if the receiving system specifically needs it.

Step 4 — Connect your broker

The copier needs a way to reach your MetaTrader account. You have three options:

MethodEA installVPSDevice onLatency
EA (MT4/MT5)YesOptionalYes~0.3 s
Desktop appNoNoYour PC~0.1 s
Cloud (MetaAPI)NoNoNo~1 s

Cloud execution is the easiest for most people — no EA, no VPS, nothing to keep running. You enter your MT4/MT5 login once and the connection lives in the cloud. See the documentation for setup on each method.

Step 5 — Set your risk and let it run

Configure risk once in the copier: fixed lot, percentage of balance, or a fixed cash risk per trade. From then on, every alert the indicator fires executes with your rules applied — entry placed, stop set, take-profits laid out, and (with an indicator that sends management alerts) break-even and trailing handled as the trade moves.

Common pitfalls

  • Symbol names. Your broker might call gold XAUUSD.m or GOLD. A good copier auto-maps common suffixes; check the mapping if orders don't fire.
  • Message format mismatch. If the copier can't parse the alert, it logs it as unrecognized. Keep the indicator on the message format your copier expects.
  • Alert frequency. Use once per bar close for entries (no repainting) and allow intrabar for TP/SL events if you want instant management alerts.
  • Weekend gaps. Automation places orders exactly as told — be mindful of holding through news and weekend gaps.

Putting it together

A trustworthy indicator plus a reliable copier turns a manual, screen-bound workflow into a hands-free one: the indicator finds and manages the trade, TradingView carries the message, and the copier executes it on your broker — entry, targets, stop, break-even, and trail. Set it up once and your strategy runs whether you're at the desk or not.

Ready to wire it up? Start with the indicators and the signal copier.

Automated trading carries substantial risk. This article is educational and not financial advice.

Get the free Signal Parsing Cheat Sheet

10 real signal formats decoded — plus a 5-day Starter trial. No card.

One email now, then occasional tips. Unsubscribe anytime.

Start your free trading journal today

Track every trade, analyze your performance with real data, and build the habits that create consistent profitability.

Get Started Free

No credit card required