Hello everyone,
Someone knows how to write this pine script in PRT language? especially the na() command
if not na(downlist[j]) and na(downlist[j-1])
Thanks
Na is used to test if a variable is NaN (Not a Number). There is no way to do that with classic variable, since we do not declare variables in ProBuilder, so the best way to to is to test if a variable is equal to 0 or not.
With array variable we can use ISSET.
Thanks Nicolas for your quick feedback.