Command na() Pine >>> PRT?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186849 quote
    Khaled
    Participant
    Veteran

    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 quote
    Nicolas
    Keymaster
    Master

    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 quote
    Khaled
    Participant
    Veteran

    Thanks Nicolas for your quick feedback.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Command na() Pine >>> PRT?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Khaled @khaled Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Khaled
4 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/28/2022
Status: Active
Attachments: No files
Logo Logo
Loading...