If you want to get an idea if the current range (low to high) is extended or not?
This script should help you to get an idea relative to the ATR.
Further comments you find in the script.
Feel free to modify upon your needs.
Jonas
NB: Due to issues around the "security" function, the recommended patch of Trading View was implemented.