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
FIVE PAYLOADS THAT COVER MOST ALERTS.
Buy at market, fixed lot
{"action":"buy","symbol":"EURUSD","lot":0.01}Sell at market, fixed lot
{"action":"sell","symbol":"EURUSD","lot":0.01}Buy with stop loss and take profit
{"action":"buy","symbol":"EURUSD","lot":0.01,"sl":50,"tp":100}Sell with stop loss and take profit
{"action":"sell","symbol":"EURUSD","lot":0.01,"sl":50,"tp":100}Quantity alias (same as lot)
{"symbol":"EURUSD","action":"buy","quantity":1}Closing positions
BY SYMBOL, BY SIDE, OR EVERYTHING AT ONCE.
Close everything on one symbol
{"action":"close","symbol":"EURUSD"}Close only the buys on a symbol
{"action":"close","symbol":"EURUSD","side":"buy"}Close only the sells on a symbol
{"action":"close","symbol":"EURUSD","side":"sell"}Flatten the whole account
{"action":"closeall"}Organizing your trades
COMMENTS, MAGIC NUMBERS, ACCOUNT ROUTING.
Tag orders with a comment
{"action":"buy","symbol":"EURUSD","lot":0.01,"comment":"breakout-v2"}Separate strategies with a magic number
{"action":"buy","symbol":"EURUSD","lot":0.01,"magic":20260720}Route to a specific account (multi-account plans)
{"action":"buy","symbol":"EURUSD","lot":0.01,"account":"YOUR-ACCOUNT-ID"}account, your default routing applies.Dynamic payloads from Pine Script
BUILT AT RUNTIME, NOT TYPED PER CHART.
alert() with the chart's own ticker
alert('{"action":"buy","symbol":"' + syminfo.ticker + '","lot":0.01}',
alert.freq_once_per_bar_close)Strategy placeholders in the alert dialog
{"action":"{{strategy.order.action}}","symbol":"{{ticker}}","lot":0.01}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.
PineConnector-format message (parsed natively)
LICENSEID,buy,EURUSD,risk=1BEFORE YOU GO LIVE
Two rules that prevent 90% of payload bugs.
Numbers unquoted, strings quoted: "lot":0.01, never "lot":"0.01" unless the docs say so.
Validate in the webhook tester before going live — especially anything concatenated in Pine.
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?
+
Do symbols need my broker's suffix?
+
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?
+
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.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.