Can someone please help how to write the below script in tradingview pine scriptenter code here
input price = close; input length = 10; def tmp1 = if price &