Should I use a calendar time based system to help draw a range in tandem with ADX?

 
For context, I'm trying to create a volume based range breakout strategy that draws its range during low periods of volume on the adx, is using a time based system useful at all? Or is there a better way I would be able to implement it. I'm not super experienced with coding ranges so this is a bit confusing for me, any help is appreciated. muchas gracias!