Here is an indicator that shows Weekly & Daily HL. You can hide Weekly (or Daily) HL lines if you don't need it. If you want the lines to be thinner, change indicator_width to 1.
Here you go eegle, This works for both 2-4 digits & 3-5 digits brokers (maybe, I didn't test this for 2-4 digits brokers). I made 1000pts Price (1.4000, 120.00 etc.) to stand out. Sometimes Price seems to slip 1pt, but never mind it's trivial.
Ok, Here you go Ronald. Basically, It's the same thing as your original code. I just modded some processing of double value. The problem of this indicator is .... you can't see the price on the right side of the chart