Search code examples
pine-scripttradingview-api

Tradingview alert with placeholder not working


I created alert for simple moving average like {{plot("MA")}} {{time}}. Here {{time}} gets resolved but {{plot("MA")}} doesnt work. Any thoughts on what is missing?

SMA with alert message. enter image description here

Alert settings enter image description here


Solution

  • From the Condition drop-down menu, you need to select the indicator that plots the MA. Otherwise, Tradingview cannot know what plot/script you are referring to.

    enter image description here