How to fix Weekly Fair Value Pivot

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #213346 quote
    MaryMary
    Participant
    Average
    Hello, I have a formula for Weekly Fair Value Pivot and I plotted it on Daily chart but this formula is only showing a plot for previous week’s pivot dated: (April 3-6th) , and not this current week’s pivot that just ended:(April 10-14,2023) How do I fix it so that I can get a  Weekly Pivot plot as soon as Friday of that same week closes? Please see my current formula that I need help with: // 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 RETURN PPWeek COLOURED(50,50,220) AS”Pivot Week”
    spy-weekly-pivot.png spy-weekly-pivot.png
    #213374 quote
    JSJS
    Participant
    Master

    Hi Mary,

    As I understand it, the week starts on Monday and you can only see the pivot of the previous week next Monday…

    #213380 quote
    MaryMary
    Participant
    Average
    But then I am looking at ThinkorSwim software, and there I can plot Weekly pivots on Daily chart as soon as the week closes. Just wondering why its not possible in Prorealtime? Thank you in advance and please see pic:
    spy-wekly-pivot-thinkorswim.png spy-wekly-pivot-thinkorswim.png
    #213382 quote
    MaryMary
    Participant
    Average
    Thank you I figured out how to do it, no need to respond further:
    spy-pivot-fix.png spy-pivot-fix.png
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

How to fix Weekly Fair Value Pivot


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Mary @mila Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by MaryMary
3 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/16/2023
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...