PIVOT POINTS AND H/L/C

Forums ProRealTime English forum ProBuilder support PIVOT POINTS AND H/L/C

  • This topic has 3 replies, 2 voices, and was last updated 7 years ago by avatarAVT.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #42630

    Hello all…

    I want to be able to manually input the values of daily pivot points and OHLC on my price charts.  I dont want to have a robot working them out (this is because I am using PRT through IG and their prices are indicative of the real price) so I will be getting my values from an outside source eg investing.com.

    The way I can see this happening is each time I want to update the values, I click on the spanner, then click on the indicator, then on the right panel/settings I enter the values for:

    R3/R2/R1/DP/S1/S2/S3/O/H/L/C

    Then the indicator would simply add the lines on my price chart.  There are no parameters needed for the lines, they can go back 20 years if needed as my strategy needs to identify zones…but I dont want the lines going further than the day I am trading from.   (I would make each line appear different to my choosing then make is a default configuration)

    Can anyone help? (if this has already been programmed then could someone point the way, I cant seem to find anything that helps me)

    Thank you

     

    #42717
    AVT

    You mean something like this?

    For quick adding make the values extern.

    #42737

    thanks AVT, this will certainly get me started….

    So with this code I will have to click modify indicator every time I wish to update the values? do we know how to get this to work like an indicator that I can adjust on the right side by entering values line width style etc…

    Is there a library for getting the colours, line styles etc so I can set what you kindly have done to my customisation? (saves you or someone else doing it and for me to learn!!!!)

    eg (just like PRT pivot points) Res all green but different styles and thickness… Sup all red etc etc etc…

     

    #42753
    AVT

    Yes, of course we can simply use RETURN variablename AS “Human Name in Indicator Adjustment”, the only disadvantage (for me personally) is that I cannot switch on/off all the lines with a single “check box” because an indicators last command must be a RETURN command of some kind. So I cannot do something like

    IF NOT HideAll THEN

    RETURN varname as “Human Name”

    ENDIF

    because here we have ENDIF as the very last thing and that’s not possible. So if you want to adjust the lines as for example in the normal Pivot Indicator you must set each line separately to “not shown” if you need a clean chart without all the lines. But here we go with the code:

    Now for doks:

    A pdf for download can be found here:

    https://www.prorealtime.com/en/help-manual/probuilder-custom-indicators

    our online dok for quick reference is here:

    https://www.prorealcode.com/prorealtime-documentation/

    Nicolas basic programming course (french) is here:

    https://www.prorealcode.com/courses/premiers-pas-avec-la-programmation-pour-prorealtime/

    and some videos (french but also some in english) are here:

    https://www.youtube.com/channel/UC8bNosI3wuid_3Ze7CzorvA/videos

    Hope that will help you for the beginning.

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login