invsto
New member
Is there an easy way of implementing "nz" from pinescript to Thinkscript. The best I could come up with is "if... isNan().. else" but it makes it complex when multiple nz variables are used
nz in pinescript:
nz in pinescript:
This function takes an argument and if it is equal to na then it returns 0, otherwise it returns the argument’s value.