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.

BBenjamin SF · Founder Published Jul 20, 2026 Read 6 min

Market orders

FIVE PAYLOADS THAT COVER MOST ALERTS.

01

Buy at market, fixed lot

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

Sell at market, fixed lot

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

Buy 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.
04

Sell with stop loss and take profit

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

Quantity alias (same as lot)

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

Closing positions

BY SYMBOL, BY SIDE, OR EVERYTHING AT ONCE.

06

Close everything on one symbol

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

Close only the buys on a symbol

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

Close only the sells on a symbol

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

Flatten the whole account

{"action":"closeall"}
The emergency exit. Useful as a manual alert you can trigger from your phone.

Organizing your trades

COMMENTS, MAGIC NUMBERS, ACCOUNT ROUTING.

10

Tag 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.
11

Separate strategies with a magic number

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

Route 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

BUILT AT RUNTIME, NOT TYPED PER CHART.

13

alert() with the chart's own ticker

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

Strategy 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

YOUR OLD ALERTS DO NOT NEED REWRITING.

15

PineConnector-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.

BEFORE YOU GO LIVE

Two rules that prevent 90% of payload bugs.

Rule 01 · quoting

Numbers unquoted, strings quoted: "lot":0.01, never "lot":"0.01" unless the docs say so.

Rule 02 · validate first

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

Quick questions.

Email support@signalforge-ai.com if yours isn't here.

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?

+
Yes — since EA v3.69 you can send buy_stop, sell_stop, buy_limit or sell_limit with a price field (the level where the pending order is placed). You can also move the SL/TP of an open trade with action: "modify". See the docs for the full syntax.
B
Benjamin SF · Founder of SignalForge
TRADER · ALICANTE 🇪🇸

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.

Paste any payload in the free webhook tester and see what would execute · no accountOpen tester →