VWAP – ANCHORED, WEEKLY-MONTHLY-YEARLY

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #166054 quote
    davidator
    Participant
    Junior

    Hi,

    I looked for all the custom VWAP indicators I could find. All of them don’t seem to work properly for me. I’m not here to complaint, just looking for advices and help 🙂

    • The weekly-monthly-yearly VWAP indicator don’t exactly start from the beginning of those period, it seems that it calculates from a certain amount of periods, so it’s not accurate. At least this is what happens in my chart.

    VWAP Weekly Monthly & Yearly

    •  The anchored VWAP works, but to select manually the date takes a lot of time. All the other charting platforms simply allow to just click on a point in the chart and anchor the vwap from there.

    VWAP Date anchored

    Without these features I won’t be able to use PRT.

    Many thanks in advance for the answers.

    poldoposta thanked this post
    #166099 quote
    robertogozzi
    Moderator
    Master

    It’s not possible for any code to interact with PC’s peripherals.

    #205390 quote
    poldoposta
    Participant
    Junior

    perchè cambiando time frame, vengono restituiti valori diversi? Grazie
    why changing time frame, different values are returned? Thank you

    #205420 quote
    robertogozzi
    Moderator
    Master

    @poldoposta

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums. Thanks 🙂

    #205421 quote
    robertogozzi
    Moderator
    Master

    Di quale indicatore stati parlando?

    poldoposta thanked this post
    #205429 quote
    Nicolas
    Keymaster
    Master

    If you change timeframe, history are different and therefore quantity of bars used for calculations also, this is why you get different values. If you select an inferior timeframe, make sure you have the same amount of history than the higher one.

    poldoposta thanked this post
    #205438 quote
    poldoposta
    Participant
    Junior

    //PRC_VWAP Date anchored | indicator
    //19.10.2017
    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge

    // — settings
    startDate = 20221201

    opendate= 20221203
    viewSD = 1 //1 = true / 0 = false

    // — end of settings

    I apologize if I created some problem in some other post. I try to summarize:

    With the above settings my vwap starts from 11.13.2022, while I would like it to start from a date that is December 2022. Where am I wrong? I also had to declare the opendate variable which told me not to be used! I would also be happy to anchor it only to a week or more weeks without a predefined date.

    thank you

    #205440 quote
    JS
    Participant
    Senior

    Hi @poldoposta

    This indicator has two settings, the “start date” and the “ViewSD” (displaying the SD in the graph).

    In the code, the date (OpenDate) is compared with the start date (StartDate) and when these are equal, the indicator starts.

    When you assign “OpenDate” itself a value (20221203) and assign the start date a value (20221201) that lies before the “OpenDate” then you get “weird things”…

    Use only the “Start Date” and “ViewSD” settings and the indicator will work as it should.

    poldoposta thanked this post
    #205454 quote
    poldoposta
    Participant
    Junior
    Hi @poldoposta This indicator has two settings, the “start date” and the “ViewSD” (displaying the SD in the graph). In the code, the date (OpenDate) is compared with the start date (StartDate) and when these are equal, the indicator starts. When you assign “OpenDate” itself a value (20221203) and assign the start date a value (20221201) that lies before the “OpenDate” then you get “weird things”… Use only the “Start Date” and “ViewSD” settings and the indicator will work as it should.
    If i left opendate without assignation the plattform invite me to assign it. if i assign equal to startdate …… in the graph don’t appear de SD !!!!! only vwap
    #205456 quote
    Nicolas
    Keymaster
    Master
    You should download the indicator and use the external settings available in the window, that way you don’t have to change the code, but the user friendly fields.
    poldoposta thanked this post
    #205457 quote
    poldoposta
    Participant
    Junior
    You should download the indicator and use the external settings available in the window, this way you don't have to change the code, but the intuitive fields.
    Is there an alternative to anchor it to a bar or at the beginning of the week…..any alternative?
    #205464 quote
    Nicolas
    Keymaster
    Master
    If you want a weekly VWAP, don’t use that code but the dedicated weekly VWAP indicator available here: https://www.prorealcode.com/prorealtime-indicators/vwap-weekly-monthly-yearly/ If you use a 5-min chart, make sure the available units displayed contain the beginning of the week, in order for the code to complete the week calculation (starting from the first day of the week).
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.

VWAP – ANCHORED, WEEKLY-MONTHLY-YEARLY


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
davidator @davidator Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/02/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...