REFERENCE · COPY & PASTE · JULY 2026

15 TradingView webhook JSON payloads, ready to paste.

Every payload below uses SignalForge's documented format and goes straight into the message box of a TradingView alert (with the webhook URL in the Notifications tab). Copy the one that matches your use case, swap the symbol, done. Unsure about a payload? Paste it into the free webhook tester and see exactly what would execute — in your browser, no account.

Market orders

01Buy at market, fixed lot

{"action":"buy","symbol":"EURUSD","lot":0.01}

02Sell at market, fixed lot

{"action":"sell","symbol":"EURUSD","lot":0.01}

03Buy with stop loss and take profit

{"action":"buy","symbol":"EURUSD","lot":0.01,"sl":50,"tp":100}

SL/TP are distances from entry (see the docs for units per instrument). The EA places them atomically with the order.

04Sell with stop loss and take profit

{"action":"sell","symbol":"EURUSD","lot":0.01,"sl":50,"tp":100}

05Quantity alias (same as lot)

{"symbol":"EURUSD","action":"buy","quantity":1}

Closing positions

06Close everything on one symbol

{"action":"close","symbol":"EURUSD"}

07Close only the buys on a symbol

{"action":"close","symbol":"EURUSD","side":"buy"}

08Close only the sells on a symbol

{"action":"close","symbol":"EURUSD","side":"sell"}

09Flatten the whole account

{"action":"closeall"}

The emergency exit. Useful as a manual alert you can trigger from your phone.

Organizing your trades

10Tag orders with a comment

{"action":"buy","symbol":"EURUSD","lot":0.01,"comment":"breakout-v2"}

The comment shows in MT5's history — one strategy, one tag, and your journal builds itself.

11Separate strategies with a magic number

{"action":"buy","symbol":"EURUSD","lot":0.01,"magic":20260720}

12Route to a specific account (multi-account plans)

{"action":"buy","symbol":"EURUSD","lot":0.01,"account":"YOUR-ACCOUNT-ID"}

Trader plan connects up to 3 broker accounts; without account, your default routing applies.

Dynamic payloads from Pine Script

13alert() with the chart's own ticker

alert('{"action":"buy","symbol":"' + syminfo.ticker + '","lot":0.01}',
      alert.freq_once_per_bar_close)

14Strategy placeholders in the alert dialog

{"action":"{{strategy.order.action}}","symbol":"{{ticker}}","lot":0.01}

Create the alert on Order fills events. Full walkthrough of alert() vs alert_message in the Pine Script alert guide.

Migrating from another bridge

15PineConnector-format message (parsed natively)

LICENSEID,buy,EURUSD,risk=1

Coming from PineConnector? Your existing comma-syntax alerts work as-is — point them at your SignalForge webhook URL and keep trading. The migration guide covers the 5-minute switch.

Two rules that prevent 90% of payload bugs: numbers unquoted, strings quoted ("lot":0.01, never "lot":"0.01" unless the docs say so); and validate in the webhook tester before going live — especially anything concatenated in Pine. Prefer building visually? The JSON Builder in your dashboard generates and validates these payloads with a form.

FAQ

Where do I paste these?

In the Message box of the TradingView alert dialog. The webhook URL (from your dashboard's Setup section) goes in the Notifications tab. Full setup: 5-minute webhook guide.

Do symbols need my broker's suffix?

If your broker lists EURUSD.m, either use that exact name in the payload or configure the suffix once in the EA settings.

Can I send limit or pending orders?

Check the docs for the current order-type coverage — the library above sticks to the payloads every plan supports today.

Author: Benjamin SF is the founder of SignalForge and an expert in trading algorithm automation. He builds and operates the SignalForge bridge for prop-firm traders and maintains its public latency benchmark (187 ms median).

Automate your TradingView signals on MT5

SignalForge routes your alerts to MetaTrader 5 in milliseconds. 14-day free trial, no card required.

SignalForge AI is an order-execution tool. We do not provide investment advice. Trading involves risk of loss.