Manual Alerts vs Pine Script Alerts: Key Differences
TradingView allows you to automate alerts in two main ways:
- Manual Alerts(Without Pinescript) β Created using TradingView’s UI (no coding)
- Pine Script Alerts β Triggered by strategy or indicator scripts
Both types can integrate with Xerolite via webhook, but they differ in flexibility, complexity, and how alert messages are constructed.
π§© Key Differences
Feature | Manual Alert | Pine Script Alert |
---|---|---|
Created via | TradingView UI | Script (e.g., strategy.entry) |
Needs coding? | β No | β Yes |
Webhook support | β | β |
Placeholders | β
Some (e.g. {{close}} ) | β
Full support (e.g. {{strategy.order.price}} ) |
Custom logic | β Limited | β Fully programmable |
Alert reuse | β Must create multiple alerts | β One strategy, multiple alerts |
Best for | Simple price-based alerts | Advanced automation |
π¬ Alert Message Format Comparison
When integrating with Xerolite, alerts must send a valid JSON message to the webhook URL. Below is how the JSON is written in each method:
π¦ Manual Alert Example (Hardcoded)
{
"action": "BUY",
"symbol": "AAPL",
"qty": "10",
"order_type": "MARKET",
"currency": "USD",
"asset_class": "STOCK",
"exch": "SMART"
}
Manual alerts require you to hardcode every field. If you want to change quantity, symbol, or order type, you need to edit each alert individually.
βοΈ Pine Script Alert Example (Using Placeholders)
{
"action": "{{strategy.order.action}}",
"symbol": "AAPL",
"qty": "{{strategy.order.contracts}}",
"order_type": "MKT",
"currency": "{{syminfo.currency}}",
"asset_class": "STOCK",
"exch": "SMART"
}
This format allows dynamic values to be filled in at runtime by TradingView, based on your Pine Script strategy. You write the alert once and reuse it across multiple conditions.
π‘ Tip: Avoid using {{ticker}}
because it may not match Interactive Brokersβ symbol format. Instead, use fixed symbols and define symbol
, asset_class
, and exch
manually, or generate alerts using the Xerolite Smart Alert Builder.
β Pros & Cons Summary
π±οΈ Manual Alerts
- β Simple setup, no coding needed
- β Good for price alerts or static trades
- β Limited to fixed logic
- β No access to real-time trade values
- β Must create one alert per action (e.g. buy/sell)
π» Pine Script Alerts
- β Full control via script logic
- β Use placeholders for dynamic values
- β Fewer alerts needed (one script = multiple trades)
- β Requires coding knowledge
- β May take time to debug properly
π οΈ Generate Alerts with Smart Alert Builder
To avoid JSON formatting mistakes and ensure broker compatibility, use the Xerolite Smart Alert Builder in Xerolite. It supports both static and placeholder-based messages.

π View Alert Request Builder User Manual
π View supported fields & placeholders