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.
- 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)
- 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.