How to plot Character '❄' on Yearly Highest Candle and Keep updating. The old character should delete when a new yearly high is created There should only be one Character '❄'on the Yearly Highest Candle
study("High Yearly", overlay=true)
hyl = input(true, title="High Yearly Line")
yhigh = security(tickerid, '12M', high)
//plot(hyl and yhigh ? yhigh :na , title="Yearly_High",style=circles, color=yellow, linewidth=3)
plotchar(hyl and yhigh ? yhigh :na , char='❄')
Error: Multiple Characters '❄' plotted and old not deleted
You need to align your expectation (or specification) with the tool you are using to achieve that.
plotchar
does not accept a positional parameter hence "keep updating" is not possible withplotchar
You need to use something else, like Labels or drawing elements, which can return an ID when created and you can modify their position later, backreferencing that ID.