I want to understand how to := and sum[1] works. This sum returns me 6093. But sum is 0, also sum[1] = 0 , am I right? How it returns me 6093? I searched the tradingview wiki, but i didnt understand. I want to change this code to another language for example javascript , c#
testfu(x,y)=>
sum = 0.0
sum:= 1+ nz(sum[1])
sum
