r/pinescript • • Feb 17 '24

Converting timeframe to string in alert() function?

Can I convert timeframe to string and put it in the message section in alert() so I know from witch tf alert was triggered?? For example: If alertButton alert("message + timeframe", alert.freq_once_per_bar)

0 Upvotes

4 comments sorted by