Connect your trading platform to TradeLens in minutes.
Keep your webhook URL secret. Anyone with this URL can submit trades to your account.
Your Webhook URL
Step 1: Open Alert Settings
In TradingView, create or edit an alert. In the Notifications tab, toggle Webhook URL on.
Step 2: Paste Your Webhook URL
Paste your unique webhook URL into the URL field:
Step 3: Set the Alert Message
In the Message field, paste this JSON template. TradingView will replace the {{variables}} automatically:
{
"instrument": "{{ticker}}",
"direction": "{{strategy.order.action}}",
"entry_price": {{close}},
"exit_price": {{close}},
"size": 1,
"strategy_tag": "my-strategy",
"note": "Auto from TradingView"
}Pro tip: Use {{strategy.order.action}} for Pine Script strategies — it auto-fills buy or sell.
Test first: Send a small 0.01 lot trade to verify everything works before going live.