Small changes needed to existing Intraday Cumulative Intraday Volume Indicator

Forums ProRealTime English forum ProBuilder support Small changes needed to existing Intraday Cumulative Intraday Volume Indicator

Viewing 3 posts - 1 through 3 (of 3 total)
  • #165084

    JMat45 has done an amazing job coding “Volume analysis – intraday”

    https://www.prorealcode.com/prorealtime-indicators/volume-analysis-intraday/

    This is an indicator exactly that I am looking for, however there are a few minor errors that I do not seem to be able to correct as my coding skills are amateur at best.

    1. When I run the code on US Stocks it only works on the second Bar and excludes the first Bar and the first bar’s volume. This applies to the first bar of all timeframes. (I have tried to adjust the start time and adjust the trading hours but no luck)
    2.  The Averages calculated for each bar also includes the current bar when it should only calculate it on the previous bar.

    For clarity – I want to be able to monitor US stocks and the volume they trade during the Opening Bars(be it 5m, 10, 15m etc) against the average volume traded during previous days Opening Bars.

    It seems there should be a simply remedy to the code but having tried all possibilities it has beaten me !

    Many thanks for any help. I do believe it will be a useful indicator for anyone who likes Volume.

     

    #165092

    Try  replacing line 12 with:

     

    #165096

    Roberto

    Many thanks for the suggestion. Sadly it does not work.

    I am using PRT for IG. If the contract is “All Sessions” like Tesla it will show the Volume of the First Bar as requested (as there were other Bars of that day before it). However if it is a contract that only starts at 2.30pm then it will not show the volume of the 1st Bar (I even tried to make the first bar as being the last bar of the night before).

     

    Is there something that PRT and/or IG do so that an indicator/code would not work on that first Bar ?

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login