I would like to draw a colored box with text into a chart that stretches from the first bar on which certain conditions apply to the last bar where this is the case. I would like for this box to have a FIXED height.
DrawText provides a fixed height, but doesn't allow me to define something like "endBarsAgo". It will only draw a colored textbox starting at "startBarsAgo" that ends when the text ends.
DrawRectangle allows me to specify "startBarsAgo" end "endBarsAgo", so I reckon I could just put a DrawText box on top of it. The only thing I couldn't figure out so far is how to assign a fixed height to the rectangle. Unlike the DrawText box it scales (even when I set autoscale = false, since I have to assign a certain "endY" value) which looks rather ugly on the chart and I would like for it to have the same fixed height as the text box.
How do I accomplish that? Is there maybe a different work-around that I'm not aware of?
Cheers, Greg
Comment