Pivots points codes 4h/Day/Weekly/Monthly

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #115824 quote
    Tanou
    Participant
    Senior

    Hello everyone,

     

    I hope you had an awesome year 2019 😉

    I just looked up in the forum for the code of every pivots points. however, I was unable to find it…!

    I’d like to get these formulas in order to test a strategy! Could someone tell me where I can find the formulas for the pivots point (cfd or cash it doesn’t matter!) in 4h/Day/Weekly/Monthly with all the intermediaries?

    Thanks to al of you!

     

    PS: Nicolas, if there’s already such an anwer can you give me th link? 😀

     

    #115827 quote
    robertogozzi
    Moderator
    Master
    #115832 quote
    Nicolas
    Keymaster
    Master
    #115854 quote
    Tanou
    Participant
    Senior

    Good evening everyone,

    Do you know why in the Following code I have a ppday which is good but my ppweek is at 0? I’ve tried different codes and I have no idea why…

    // POINT PIVOT HEBDOMADAIRE
    IF dayofweek < dayofweek[1] THEN
    weekhigh = prevweekhigh
    weeklow = prevweeklow
    weekclose = prevweekclose
    prevweekhigh = high
    prevweeklow = low
    ENDIF
    
    prevweekhigh = max(prevweekhigh, high)
    prevweeklow = min(prevweeklow, low)
    prevweekclose = close
    
    PPWeek = (weekhigh + weeklow + weekclose) / 3
    
    
    
    // POINT PIVOT JOURNALIER
    IF dayofweek = 1 THEN
    dayhigh = DHigh(2)
    daylow = DLow(2)
    dayclose = DClose(2)
    ENDIF
    
    IF dayofweek >=2 and dayofweek < 6 THEN
    dayhigh = DHigh(1)
    daylow = DLow(1)
    dayclose = DClose(1)
    ENDIF
    
    PPDay = (dayhigh + daylow + dayclose) / 3
    
    
    RETURN PPWeek COLOURED(50,50,220) AS"Pivot Week", PPDay COLOURED (220,50,50) as "Point Pivot"

    THANK YOU SO MUCH!

    #115855 quote
    Tanou
    Participant
    Senior

    Thanks for your answers @Roberto and @Nicolas! However, have you just a simple way just to get at least the Montly and Weekly PP? I can’t find it within these pages… 🙁

    #115857 quote
    robertogozzi
    Moderator
    Master

    Search box is your friend, don’t be shy!

    Searching MONTHLY I got this link, among others;

    https://www.prorealcode.com/prorealtime-indicators/daily-weekly-monthly-pivot-points/

    #115858 quote
    Tanou
    Participant
    Senior

    Yes! Thanks Robero! I already seen this one and it could be perfect!!! However, I am not able to ue it or doing Something wrong as it did not show ANYTHING to me… I have no idea why, even by changing the mode to 0/1/2/3…

     

    Haeyou any idea? Dos it works well for you?

     

    Many thanks!

    #115859 quote
    robertogozzi
    Moderator
    Master

    Did you apply it ON the price chart, rather than BELOW it?

    You can do so by clicking on the upper left spanner of the price chart, then add that indicator you must have previously downloaded.

    Line 95 returns all needed info.

    #115860 quote
    Tanou
    Participant
    Senior

    Here is what I have…

     

    Nothing showed up. ON te graph or Under..

     

    Any idea Roberto?

     

    Thanks 😀

    testpp.png testpp.png
    #115862 quote
    Tanou
    Participant
    Senior

    I just tred on the DOW and it is the same for me, still Nothing… Does anything appeared on your side?

    #115863 quote
    robertogozzi
    Moderator
    Master

    As you can see it works perfectly ON my chart (Daxj, 4h TF), and UNDER my chart.

    I think it’s because you are using TICKS, try setting  a 1000-tick chart with 100k units.

    I did not test it, I am not sure it’ll work with ticks. check on both TICK and UNIT charts to spot any difference.

    x-1.jpg x-1.jpg y.jpg y.jpg
    #115879 quote
    Tanou
    Participant
    Senior

    Thank you so much Roberto!

     

    You’ve help was perfect 😀

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

Pivots points codes 4h/Day/Weekly/Monthly


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Tanou @tanou Participant
Summary

This topic contains 11 replies,
has 3 voices, and was last updated by Tanou
6 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/03/2020
Status: Active
Attachments: 3 files
Logo Logo
Loading...