I’ve added a variable value to an alert description (i.e. {{close}}), but it doesn’t work

The value substitution feature, in regards to alertcondition(), only works for scripts that were written in Pine v4 or higher. If, when the alert is fired, the variables in the description are not replaced with values (i.e. it displays Close = {{close}} instead of Close = 45.1), the indicator with the alertcondition() is probably written on earlier versions of Pine and variable descriptions will not work for it.

Here's how it works in Pine v4 or higher:


And here's how it works in earlier Pine versions:


This will happen even if you add the variable in the Message field in the Alert dialog (without editing the code itself). If you add the variable there and it isn’t replaced when the alert is fired, the indicator is most likely written in Pine v3 or lower.

If the script is yours, you can use our Converter to convert a v3 script to v4. You can read more about the feature here. If this script is from the public library, you can contact its author and ask them to update the indicator to v4.

首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出