Highest always same as Lowest (PRC-1)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #193912 quote
    magihag
    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
    robertogozzi
    Moderator
    Master

    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
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
3 years, 9 months ago.

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