some basic questions about some code and CustomClose

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #91431 quote
    ooples
    Participant
    New

    I come from a C# background and so I understand 90% of the code but I have some questions about what some of the below code means:

    Source: https://www.prorealcode.com/prorealtime-indicators/kase-dev-stop-v3/

    mmax=max(max(high,high[1]),pricc[2]) Does the high[1] mean the previous high and the pricc[2] mean 2 prices ago? Also I’m not understanding the switching between pricc and price. It says pricc=customclose but there is no definition for the custom close anywhere and I can’t tell if the pricc is a misspelled version of price. Any ideas?

    #91433 quote
    Vonasi
    Moderator
    Master

    How you describe [1] and [2] is correct.

    CUSTOMCLOSE means it uses whatever value is set in the indicator settings window – so you can select close, open, median price, total price etc to be used in the indicator.

    #91462 quote
    ooples
    Participant
    New

    What about the line below?

    once price=close*100
    The code keeps switching between price and pricc and for lines like this below then price will always be chosen since it is going to be 100 times the close
    price=max(price,high)
    #91467 quote
    Vonasi
    Moderator
    Master

    I’ve not looked at the code in detail but ONCE means that line is only read on the very first run through of the code and ignored every candle after that.

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

some basic questions about some code and CustomClose


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
ooples @ooples Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Vonasi
6 years, 12 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/15/2019
Status: Active
Attachments: No files
Logo Logo
Loading...