Thank you for your post.
Can you please clarify who you connect to for data? Are you sure this provider offers historical data for Tick intervals which are used to build range bars?
You can view a matrix of the data offered by your provider from the following link:
I look forward to assisting you further.
Comment