How to indicate high wicks of more than 10%

This is my code, but it's not working, I don't understand why!!
Thanks for your help.
Peio

//@version=4
condition = high  close
wickPercentage = (high - close) * 100 / close 
if wickPercentage > 10
    plotValue =  wickPercentage >10 ? wickPercentage : na
plot(wickPercentage ? close : na, color=color.rgb(76, 134, 175), style=plot.style_columns) 

All candles are displayed on the chart, minus the candles without a high wick. And I would like to indicate that candles with a high wick above 10%



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations