Solution: Each new bar close I will need to loop thru the Vol data series from most recent bar until I reach a low time bar or bar 0 (right to left). I have it working fine left to right but after 2 hours I have to reset the counts and start over. I don't want an accumulation of 2 hours but a rolling 2 hours plot.
Question: Just checking to make sure there isn't a better way. The logic is simple but it will be a bit of a pig. It was the only way I could see to get the correct desired result no matter the chart time frame.
Hope this makes sense.
Comment