No matter which, please understand I want to know why the 'range' printed by my codes is changing with every tick.
I don't want to fix it by this thread. But know about the root cause.
First of all we have no idea of the value of pipPoints and how it compares to the symbol that you are using..
high1 and low1 are not declared locally. That suggests that they are declared elsewhere and maybe are assigned a value elsewhere in your code?