To appreciate dear Mr.Khakestar efforts i have converted his mt4 ATR formula to pine script. All credits goes to him.
You can enable plots from the settings tab and then disable five first plots from the style tabs (finally save as default). Then you can view the ATR result of each candle in the past:
Green number is the HL range of the candle.