price range of candles

 
how to calculate the price range of a number of candles with same color(bullish or bearish)?