that’s a very interesting solution, 1 single (or more, to have separate price level highlighted horizontally) rectangle from BarIndex 0 to the current one.
If you want to set the background horizontally and extend it to the infinite on the right, you use a DATETOBARINDEX with a date in the future: (example to draw the rectangle until the 1st January 2100).