Each gap is defined by two lines (the lower and upper bound of the gap), and a label giving information on its price range
length: the number of candles being considered in the indicator (max is 3000).
width: the width of the gap lines.
was trying to understand if this could be of any help?
hline(3.14, title='Pi', color=blue, linestyle=dotted, linewidth=2)
// You may fill the background between any two hlines with a fill() function:
h1 = hline(20)
h2 = hline(10)
I would love to fill the gaps with a rectangle instead of two lines. However, I haven't found the solution yet. It seems like you cannot use fill function with line.new object... And the problem with hline is that it fills the background between hlines for the entire chart, you cannot specify a starting x