create_strategy_alert
Create a TradingView alert from a saved Pine strategy, automatically resolving the symbol and using strategy defaults; optionally send signals to a trading bot via webhook.
Instructions
Create a new TradingView alert from one of your saved Pine strategies. Resolves the symbol and its currency-id automatically, and reads the strategy's own default input values so the alert actually fires. Optionally set a webhook URL to forward signals to your own trading bot or endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Send email on fire. Default false. | ||
| popup | No | Show popup in TradingView. Default true. | |
| inputs | No | Override strategy inputs, e.g. {"in_0": 21}. Defaults come from the script. | |
| symbol | Yes | EXCHANGE:TICKER, e.g. "BYBIT:BTCUSDT.P" or "BINANCE:ETHUSDT". | |
| message | No | Alert message. Supports {{strategy.order.action}}, {{ticker}} etc. | |
| strategy | Yes | Saved strategy name, title or pine_id. See list_saved_strategies. | |
| web_hook | No | Webhook URL to POST the alert message to. | |
| resolution | No | Timeframe in minutes, or "D"/"W". Default "15". | |
| mobile_push | No | Send push notification. Default true. | |
| expiration_days | No | Days until the alert expires. Default 31. |