lukenum
Pine Script Rookie
Pine Script Rookie
Posts: 6
Joined: January 15th, 2023

Variable-value-in-TV-alert to a webhook

Hi again,

I have another question about the variable value, {{ticker}}, as I thought it was supposed to be able to transfer a correct ticker via a webhook. Instead, it shows the text per the attached screenshot in the link below.

https://asset.cloudinary.com/dxjniytnv/ ... 22a9f1b091

Does it only work with the alertcondition(), not the alert()? Is there any workaround?

Cheers,
Luke

Steve Burman
Moderator
Moderator
Posts: 109
Joined: January 13th, 2023

Re: Variable-value-in-TV-alert to a webhook

Correct, the {{ticker}} only works with alertcondition(). With alert() you can concatenate the message to include the ticker

lukenum
Pine Script Rookie
Pine Script Rookie
Posts: 6
Joined: January 15th, 2023

Re: Variable-value-in-TV-alert to a webhook

Yes, I prefer to use alert and I will look into the concatenate option. Thank you so much Steve.

lukenum
Pine Script Rookie
Pine Script Rookie
Posts: 6
Joined: January 15th, 2023

Re: Variable-value-in-TV-alert to a webhook

Yes, I prefer to use alert and I will look into the concatenate option. Thank you so much Steve.
Last edited by lukenum on Thu Jan 19, 2023 11:34 am, edited 1 time in total.

Steve Burman
Moderator
Moderator
Posts: 109
Joined: January 13th, 2023

Re: Variable-value-in-TV-alert to a webhook

You're welcome Luke :wink:

Return to “Pine Script Q&A”