Wrong Pivot points on Futures NQ and DJ

Viewing 15 posts - 16 through 30 (of 53 total)
  • Author
    Posts
  • #227526 quote
    Jerome888
    Participant
    Average

    Thank you very much.

    If I apply it as is on the NQXXXX 1min with 40 kUnits, MonthPivot is equal at 17240,62 whereas the PRT native Piv M is at 17123,33.

    I am trying to understand why

    #227527 quote
    Jerome888
    Participant
    Average

    …during February I mean.

    and it looks like the vertical line is drawn from the 2nd of Feb instead of the 1st.

    #227528 quote
    LucasBest
    Participant
    Average

    I have not tried with 1 minutes (only 30 minutes and bigger, 1h 4h etc…), let me check

    #227530 quote
    LucasBest
    Participant
    Average

    Here US Tech 100 (IG Markets) 1 min time frame, working fine on any time frame.

    What is NQXXXX ?

    Capture-decran-2024-02-07-115033.png Capture-decran-2024-02-07-115033.png
    #227532 quote
    LucasBest
    Participant
    Average

    Monthly Pivots on the Price (5 min time frame). As you can see, it is exactly the same as PRT embeded Pivots…

    Capture-decran-2024-02-07-115851.png Capture-decran-2024-02-07-115851.png
    #227534 quote
    LucasBest
    Participant
    Average
    ONCE DayH = high
    ONCE DayL = low
    ONCE DayC = close
    ONCE FullDay = 0
    ONCE FullWeek = 0
    ONCE FullMonth = 0
    
    IF (OpenTime=010000 and dayofweek<>1) or (dayofweek<DAYOFWEEK[1]) THEN
    
    if dayofweek <> 1 or (dayofweek<DAYOFWEEK[1]) THEN
    PivotDuJour  = (DHigh(1) + DLow(1) + DClose(1)) / 3
    elsif dayofweek = 1 then
    PivotDuJour  = (DHigh(2) + DLow(2) + DClose(2)) / 3
    endif
    
    MonthH = max(MonthH,DayH)
    MonthL = min(MonthL,DayL)
    MonthC = DayC
    WeekH = max(WeekH,DayH)
    WeekL = min(WeekL,DayL)
    WeekC = DayC
    
    
    pDayofWeekI = DayofWeekI
    pDayI = DayI
    pDayH = DayH
    pDayL = DayL
    pDayC = DayC
    DayofWeekI = DayofWeek
    DayI = Day
    DayH = High
    DayL = Low
    DayC = Close
    
    If FullDay then
    DayPivot = (pDayH + pDayL + pDayC)/3
    Else
    DayPivot = undefined
    FullDay = 1
    Endif
    
    If DayofWeekI < pDayofWeekI then
    pWeekH = WeekH
    pWeekL = WeekL
    pWeekC = WeekC
    WeekH = High
    WeekL = Low
    WeekC = Close
    
    If FullWeek then
    WeekPivot = (pWeekH + pWeekL + pWeekC)/3
    Else
    WeekPivot = undefined
    FullWeek = 1
    Endif
    //drawvline(barindex)
    Endif
    
    If DayI < pDayI then
    pMonthH = MonthH
    pMonthL = MonthL
    pMonthC = MonthC
    MonthH = High
    MonthL = Low
    MonthC = Close
    
    If FullMonth then
    MonthPivot = (pMonthH + pMonthL + pMonthC)/3
    Else
    MonthPivot = undefined
    FullMonth = 1
    Endif
    //drawvline(barindex)
    Endif
    
    ENDIF
    
    DayH = max(DayH,high)
    DayL = min(DayL,low)
    DayC = close
    
    Return WeekPivot style(line,4) coloured("orange",160)
    

    I added also weekly Pivots (On the picture, weekly Pivots on price 5 min time frame)

    Capture-decran-2024-02-07-115851-1.png Capture-decran-2024-02-07-115851-1.png Capture-decran-2024-02-07-120523.png Capture-decran-2024-02-07-120523.png
    #227537 quote
    LucasBest
    Participant
    Average

    If i search for anything else than US Tech 100 for Nasdaq / US Index (future), i get only this list… (IG Markets)

    Capture-decran-2024-02-07-121810.png Capture-decran-2024-02-07-121810.png Capture-decran-2024-02-07-122107.png Capture-decran-2024-02-07-122107.png
    #227540 quote
    Jerome888
    Participant
    Average

    Thanks.

    NQXXXX is the nasdaq futures (mini).

    As you can see I have a difference of about 117 points between the calculated pivot and the native one

    Capture-decran-2024-02-07-123636.png Capture-decran-2024-02-07-123636.png
    #227542 quote
    LucasBest
    Participant
    Average

    Is it IG Markets ?

    Have you changed something in the settings of PRT concerning the hours ?

    Capture-decran-2024-02-07-124334.png Capture-decran-2024-02-07-124334.png
    #227545 quote
    Jerome888
    Participant
    Average

    Nothing changed.

    #227547 quote
    LucasBest
    Participant
    Average

    Can you put 5 min time frame and zoom at the begining of the week and show the time at the bar before and the bar at the change of the week ? (like i did)

    Jerome888 thanked this post
    Capture-decran-2024-02-07-131942.png Capture-decran-2024-02-07-131942.png Capture-decran-2024-02-07-132000.png Capture-decran-2024-02-07-132000.png
    #227553 quote
    Jerome888
    Participant
    Average

    Ca te va ça ? Merci

    1.png 1.png 2.png 2.png
    #227561 quote
    LucasBest
    Participant
    Average

    Oui, mais on va rajouter l’indicateur suivant en bas des prix et mettre le pivot daily de PRT sur les prix, pour voir le décalage (s’il y en a).

    ONCE DayH = high
    ONCE DayL = low
    ONCE DayC = close
    ONCE FullDay = 0
    ONCE FullWeek = 0
    ONCE FullMonth = 0
    
    IF (OpenTime=010000 and dayofweek<>1) or (dayofweek<DAYOFWEEK[1]) THEN
    
    if dayofweek <> 1 or (dayofweek<DAYOFWEEK[1]) THEN
    PivotDuJour  = (DHigh(1) + DLow(1) + DClose(1)) / 3
    elsif dayofweek = 1 then
    PivotDuJour  = (DHigh(2) + DLow(2) + DClose(2)) / 3
    endif
    
    MonthH = max(MonthH,DayH)
    MonthL = min(MonthL,DayL)
    MonthC = DayC
    WeekH = max(WeekH,DayH)
    WeekL = min(WeekL,DayL)
    WeekC = DayC
    
    
    pDayofWeekI = DayofWeekI
    pDayI = DayI
    pDayH = DayH
    pDayL = DayL
    pDayC = DayC
    DayofWeekI = DayofWeek
    DayI = Day
    DayH = High
    DayL = Low
    DayC = Close
    
    If FullDay then
    DayPivot = (pDayH + pDayL + pDayC)/3
    Else
    DayPivot = undefined
    FullDay = 1
    Endif
    
    If DayofWeekI < pDayofWeekI then
    pWeekH = WeekH
    pWeekL = WeekL
    pWeekC = WeekC
    WeekH = High
    WeekL = Low
    WeekC = Close
    
    If FullWeek then
    WeekPivot = (pWeekH + pWeekL + pWeekC)/3
    Else
    WeekPivot = undefined
    FullWeek = 1
    Endif
    //drawvline(barindex)
    Endif
    
    If DayI < pDayI then
    pMonthH = MonthH
    pMonthL = MonthL
    pMonthC = MonthC
    MonthH = High
    MonthL = Low
    MonthC = Close
    
    If FullMonth then
    MonthPivot = (pMonthH + pMonthL + pMonthC)/3
    Else
    MonthPivot = undefined
    FullMonth = 1
    Endif
    //drawvline(barindex)
    Endif
    
    ENDIF
    
    DayH = max(DayH,high)
    DayL = min(DayL,low)
    DayC = close
    
    Return WeekPivot style(line,4) coloured("purple",160), DayPivot style(line,2) coloured("blue",160)
    
    Jerome888 thanked this post
    Capture-decran-2024-02-07-134002.png Capture-decran-2024-02-07-134002.png Capture-decran-2024-02-07-141107.png Capture-decran-2024-02-07-141107.png
    #227570 quote
    Jerome888
    Participant
    Average

    Here it is

    3.png 3.png
    #227573 quote
    LucasBest
    Participant
    Average

    It would be cool if someone else could test this and let us know if dailypivot works (as for me) or not (as for Jerome888)

    Jerome888 thanked this post
Viewing 15 posts - 16 through 30 (of 53 total)
  • You must be logged in to reply to this topic.

Wrong Pivot points on Futures NQ and DJ


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Jerome888 @jerome888 Participant
Summary

This topic contains 52 replies,
has 6 voices, and was last updated by PeterSt
2 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/05/2024
Status: Active
Attachments: 26 files
Logo Logo
Loading...