Highest always same as Lowest (PRC-1)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #193912 quote
    magihagmagihag
    Participant
    New

    Hello dear fellows,

    N = 64
    clopen = close - open
    m = LOWEST[N](clopen)
    M = HIGHEST[N](clopen)
    d = M - m
    RETURN d
    //Why d is always 0?
    

    Why the return value always is 0?

    (PRC-1)

    PRC-1-Highest-Lowest-always-same.png PRC-1-Highest-Lowest-always-same.png
    #193921 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Because variable names are case insensitive, thus M and m are the same and you are subtracting the same value from itself.

    Use different names.

    magihag thanked this post
    #193923 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Only post in the language of the forumthat you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.

    I moved it from the German forum.

    Thank you 🙂

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

Highest always same as Lowest (PRC-1)


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
magihag @magihag Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/26/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...