Command na() Pine >>> PRT?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186849 quote
    KhaledKhaled
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    KhaledKhaled
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 KhaledKhaled
4 years, 8 months ago.

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