Hi there,
Any way to change the background colour to display horizontal instead of vertical?
Thanks
No, as the background colour is set for each bar, so it’s plotted only vertically, as bars have just a fixed horizontal span (the TF).
Hi there,
Any way to change the background colour to display horizontal instead of vertical?
Thanks
maybe this answer of Nicola for my background problem can help you or give some idea, you have to use the rectangle
@ZeroCafeine
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).
defparam drawonlastbaronly=true
drawrectangle(0,highest[10](high),datetobarindex(21000101),lowest[10](low)) coloured("crimson",150) bordercolor("crimson",0)
return