Create the TradingView alert
One alert per automation. Claude gives you the webhook URL and tells you whether to keep TradingView's default message or paste a template.
Requirements
- A paid TradingView plan with 2FA enabled. Free plans cannot send webhooks.
- Your script applied to a chart.
Steps
- Open the chart with your script, open the Alerts panel in the right sidebar and click + (Create alert).
- Condition: your strategy (for
strategy()scripts) or your script'salert()/alertcondition()(for rule-based scripts). - Message: keep the default, or replace it with the
messageToPasteClaude gave you. For rule-based scripts keep your alert text exactly as the samples Claude validated. - Notifications tab → enable Webhook URL and paste the URL from Claude or your workspace.
- Expiration: open-ended. Click Create.
Verification
Wait for one real fill. TradingView's Send test button does not expand placeholders, so a test alert cannot verify the automation. Ask Claude for the automation status, or watch the activity feed in your workspace; the automation is marked verified after the first recognized alert.
Adapter shapes
- strategy_default — TradingView's default alert message for
strategy()scripts. Nothing to paste. - template — a message Claude gives you to paste, for scripts that need order ids or comments.
- rules — for
alert()/alertcondition()scripts: patterns matched against your own alert text.
Alerts that match nothing are logged with their raw body so Claude can fix the adapter.