I'm trying to code an indicator that displays a histogram of each hour in the past based of a candlestick's high and close. For example it calculates whether each specific hour in the day has been bearish or bullish based of the past data. For example..
Each bar in the histogram represents each candle stick at that specific given time period in the past. If the past 100 days that hour closed above the open 70 times then it will be green 70/100 and 30/100 red beneath. The concept is based off seasonality but instead of annual increments, it is set to daily increments.
Does somebody know how to go about this?