Running daily Volume in a intraday Chart

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #77737 quote
    Ringo
    Participant
    Junior

    Hello,

    I would like to have the running daily volume of the recent day visualized in an intraday chart like the 2min timeframe.

    For example I attached two charts:

    1. msft PRT 2min chart where I need the running daily volume
    2. the msft 2min chart of Lightspeed platform, where the example of the running daily volume is showed.

    Possible to create something similar like that in PRT?

    Thanks for help

    Best regards

    André

    #77739 quote
    GraHal
    Participant
    Master

    Where does the 11,792,548 volume come from for the Lightspeed Platform ?

    I ask because even if somehow you / somebody could provide a means to get a daily volume figure displayed on PRT Charts then it would only be the volume generated by IG Clients.

    Would be a different source if you use the PRT direct Platform (correct name escapes me) operating / dealing direct to / from exchanges.

    #77752 quote
    Nicolas
    Keymaster
    Master

    The code below will do it for you:

    defparam drawonlastbaronly=true
    
    if intradaybarindex=0 then 
    vol=0
    endif
    
    vol=vol+volume
    
    drawtext("running daily volume= #vol#",barindex,0,Dialog,Bold,22)
    
    return 
    

    Because we can’t anchor the text at a fixed position on the chart, I made the text to appear at 0 price value, so you should add the indicator below the chart and not applying on price, like in the attached picture.

    Ringo, Nobody and Bel thanked this post
    #77773 quote
    Ringo
    Participant
    Junior

    Hello Nicolas,

    exactly what I need. Thanks a lot.

    André

    #77775 quote
    Ringo
    Participant
    Junior

    Thanks GraHal, Volume as shown came from the LS Platform.

    But for the indicator I use the Volume which I receive via PRT and PRT US Stocks Datafeed. No IG Client.

    #77817 quote
    Nobody
    Participant
    Veteran

    Is it possible to just collate the volume between certain times of day such as 9am to 4pm  ?   I  changed it from a text to a barchart easy enough but the time factor not so easy for me at this stage  . Any help appreciated

    #77818 quote
    GraHal
    Participant
    Master

    Does this work?

    if Time < 090000 and Time > 160000 then 
    vol=0
    endif
     
    vol=vol+volume
    Nobody and robertogozzi thanked this post
    #77819 quote
    Nobody
    Participant
    Veteran

    Does this work?

    No but it looks like the right track

    #77825 quote
    robertogozzi
    Moderator
    Master

    if Time < 090000 and Time > 160000 then

    TIME cannot be < 090000 AND > 160000 at the same TIME! 🙂

    Replacing AND with OR should do.

    Nobody and GraHal thanked this post
    #77828 quote
    swapping
    Participant
    Master

    In complement at code to Nicolas, add variable (space) for adjust visibility 

    • I’m sorry for me english
    #77831 quote
    Nobody
    Participant
    Veteran

    Appreciate all the help given . Very handy tool for me  . This the code im using 

    // cummulative volume for ASX aus200 Timezone
    if Time < 095000 or Time > 163000 then
    vol=0
    endif
     
    vol=vol+volume
    
    return vol coloured(285,165,32)style(histogram)
    

     

    #77833 quote
    GraHal
    Participant
    Master

    Above added as row 55 here Snippet Link Library

    robertogozzi thanked this post
    #77880 quote
    Ringo
    Participant
    Junior

    Hello,

    I have another additional question, regarding the indicator Nicolas has given me for the daily volume counter:

    Works fine so far, but I noticed the following. When the chart is in an intraday timeframe like 2min or 1hour, the volume in the indicator is counting with a lag/delay. Not so when I switch to the daily timeframe.

    What could be the reason for that? Please check the attached screenshot.

    Thanks

    André

    #77886 quote
    Nobody
    Participant
    Veteran
    Hello,

    I have another additional question, regarding the indicator Nicolas has given me for the daily volume counter:

    Works fine so far, but I noticed the following. When the chart is in an intraday timeframe like 2min or 1hour, the volume in the indicator is counting with a lag/delay. Not so when I switch to the daily timeframe.

    What could be the reason for that? Please check the attached screenshot.

    Thanks

    André

    The daily volume updates constantly but the intra volume counter only adds the volume for current 2 m bar once bar is completed 

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

Running daily Volume in a intraday Chart


ProBuilder support

New Reply
Author
author-avatar
Ringo @ringo Participant
Summary

This topic contains 13 replies,
has 6 voices, and was last updated by Nobody
7 years, 5 months ago.

Topic Details
Forum: ProBuilder support
Language: English
Started: 08/07/2018
Status: Active
Attachments: 4 files
Logo Logo
Loading...