TradingView strategy and Pine Script alerts as phone calls
Updated 19 November 2026
Any TradingView alert with a webhook can become a phone call, including alerts from your own Pine Script indicators and strategies. The script decides when the alert fires and what it says; the webhook decides where it goes.
Indicator: alertcondition()
Add a condition to your indicator, then create an alert on it and pick the condition in the alert dialog:
//@version=5
indicator("RSI phone alert", overlay=false)
r = ta.rsi(close, 14)
plot(r)
alertcondition(ta.crossunder(r, 30), "RSI below 30", "{{ticker}} RSI crossed below 30 at {{close}}")
The third argument is the default message, read out on the call. Keep it short and spoken-friendly.
Script-driven: alert()
With alert() the script builds the message itself. Create one alert on the script and choose
"Any alert() function call":
//@version=5
indicator("Breakout phone alert", overlay=true)
level = ta.highest(high, 20)[1]
if ta.crossover(close, level)
alert(syminfo.ticker + " broke the 20-bar high at " + str.tostring(close), alert.freq_once_per_bar_close)
Strategies
Create an alert on the strategy; it fires on each order fill. In the message use placeholders such as
{{strategy.order.action}} and {{strategy.order.contracts}}, for example:
{{ticker}} {{strategy.order.action}} {{strategy.order.contracts}} at {{strategy.order.price}}.
Connect it to a phone call
- In the alert dialog, open Notifications and tick Webhook URL.
- Paste your Pingstamp webhook URL and create the alert.
- Send a test from your Pingstamp dashboard first, so you know the call reaches you.
Settings that matter
- Frequency: "Once per bar close" avoids calls from a signal that appears and disappears inside a bar; "once per bar" is faster but can be noisier.
- Keep messages short: the call reads the message out loud, twice.
- Not too many: a call per bar on a 1-minute chart is a lot of phone calls; save calls for the signals you act on.
- Recreate the alert after editing the script: alerts keep the script version they were created with.
Pine Script reference: TradingView Pine Script v5 reference.