Newbie; Pivot point Indicator

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #86385 quote
    Andyd3
    Participant
    New

    Hello everyone,

    I’m looking for a pivot indicator that i can enter H,L,C for drawing daily support and resistance and camarilla lines.

    I cant seem to find one that suits.

    Any help would be appreciated.

    Thanks

    Andrew

    #86388 quote
    Nicolas
    Keymaster
    Master

    The camarilla pivot points indicator is here: camarilla pivot points

    But you want to define yourself the daily Close, High and Low? and not take the “official” ones?

    #86394 quote
    Andyd3
    Participant
    New

    Hi Nicolas,

    Thanks for the link and yes. I’m wanting to add my own daily high, low, close figures.

    Is this possible?

    Cheers

    #86402 quote
    Nicolas
    Keymaster
    Master

    Sure, just add your own prices in the myH,myL and myC variables in the code:

    REM Camarilla Pivot Points
    
    myH = 12653
    myL = 11698
    myC = 11800
    
    PP = myC//PP = Previous Day's Close
    
    R1 = ((myH-myL) * 1.1)/12+myC
    RR2 = ((myH-myL)*1.1)/6+myC // Note: RR2 is used instead of R2 since R2 is the symbol for "R squared" in probuilder language.
    R3 = ((myH-myL)*1.1)/4+myC
    R4 = ((myH-myL)*1.1)/2+myC
    
    S1 = myC-((myH-myL)*1.1)/12
    S2 = myC-((myH-myL)*1.1)/6
    S3 = myC-((myH-myL)*1.1)/4
    S4 = myC-((myH-myL)*1.1)/2
    
    RETURN PP COLOURED(0,0,0) AS "CAMA PP" , R1 COLOURED(155,155,155) AS "CAMA R1" , RR2 COLOURED(0,0,255) AS "CAMA R2" , R3 COLOURED(0,180,0) AS "CAMA R3" , R4 COLOURED(255,0,0) AS "CAMA R4" , S1 COLOURED(155,155,155) AS "CAMA S1" , S2 COLOURED(0,0,255) AS "CAMA S2" , S3 COLOURED(0,180,0) AS "CAMA S3" , S4 COLOURED(255,0,0) AS "CAMA S4"
    Andyd3 thanked this post
    #86415 quote
    Andyd3
    Participant
    New

    Thanks again Nicolas!

    just a bit of tweaking to the calculations needed but works great.

    How do i make this attache to each chart? at the moment when i put in the prices H,L,C for the EUR/USD and open another chart the same prices are there?

    Cheers

    #86417 quote
    Nicolas
    Keymaster
    Master

    In this case, you need to delete the 3 lines and add these variables as external ones like in attached picture (example).

    Andyd3 thanked this post
    #86426 quote
    Andyd3
    Participant
    New

    Yep, I see where i went wrong now. See the attachment which shows how i tried using the variables.

    I’ve also attached it here if anyone else wants it.

    Working great, Thank you for your time!

    Cheers

    Add Variables

    myH = High
    myL = Low
    myC = Close

     

    PP = (myH+myL+myC)/3//PP = Pivot point
    
    R1 = (2*PP)-myL
    RR2 = PP+myH-myL // Note: RR2 is used instead of R2 since R2 is the symbol for "R squared" in probuilder language.
    R3 = myH+2*(PP-myL)
    R4 = (myH-myL)*1.1/2+myC
    
    S1 = (2*PP)-myH
    S2 = PP-myH+myL
    S3 = myL-2*(myH-PP)
    S4 = myC-(myH-myL)*1.1/2
    
    RETURN myH COLOURED(0,0,0) AS "HIGH" , myl COLOURED(0,0,0) AS "LOW" , myC COLOURED(0,0,0) AS "CLOSE" , PP COLOURED(0,0,0) AS "PP" , R1 COLOURED(0,0,255) AS "R1" , RR2 COLOURED(0,0,255) AS "R2" , R3 COLOURED(0,0,255) AS "R3" , R4 COLOURED(0,128,0) AS "CBOL" , S1 COLOURED(255,0,0) AS "S1" , S2 COLOURED(255,0,0) AS "S2" , S3 COLOURED(255,0,0) AS "S3" , S4 COLOURED(0,128,0) AS "CBOS"
    #86617 quote
    Andyd3
    Participant
    New

    Hi Nicolas,

    Hoping you can help out again.

    I’m wanting the high, low and close of the market open hours from the previous day populate the formula in this code.

    So it will be changing each day.

    Can this be done?

    Thanks

    Andyd3

    #86660 quote
    Nicolas
    Keymaster
    Master

    Delete your external variables and add the code below at the top of the code:

    myH = dhigh(1)
    myL = dlow(1)
    myC = dclose(1)
    #86666 quote
    Andyd3
    Participant
    New

    Yep, I did try this and it worked my main issue was adding a function to read the H,L,C for market open hours.

    #86668 quote
    Nicolas
    Keymaster
    Master

    So I assume the “market open hours” have different times than the daily one?

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

Newbie; Pivot point Indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Andyd3 @andyd3 Participant
Summary

This topic contains 10 replies,
has 2 voices, and was last updated by Nicolas
7 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/06/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...