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).
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue