Command na() Pine >>> PRT?

Forums ProRealTime English forum ProBuilder support Command na() Pine >>> PRT?

Viewing 3 posts - 1 through 3 (of 3 total)
  • #186849

    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

    #186853

    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.

     

    #186856

    Thanks Nicolas for your quick feedback.

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login