Relative Content

Tag Archive for pythonvolumeprofilestockstock-data

python: volume profile needs to adjust to time range and period

I have a working script that shows a volume profile for a stock with the dates on the bottom and price on the y-axis.
It works great for daily data but when i try to change the time to 5 minutes or 1 hour for instance, rather than showing a separate volume profile bar for each hour, all of the bars are crammed together for each day.
So an hourly chart over 20 days, for instance, will have 20 dates with 8 bars crammed into each date rather than 20 days with 8 separate bars.
How can i fix this?