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:
- msft PRT 2min chart where I need the running daily volume
- 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é
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.
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.
Hello Nicolas,
exactly what I need. Thanks a lot.
André
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.
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
Does this work?
if Time < 090000 and Time > 160000 then
vol=0
endif
vol=vol+volume
Does this work?
No but it looks like the right track
if Time < 090000 and Time > 160000 then
TIME cannot be < 090000 AND > 160000 at the same TIME! 🙂
Replacing AND with OR should do.
In complement at code to Nicolas, add variable (space) for adjust visibility
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)
Above added as row 55 here Snippet Link Library
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é
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