Create a fixed rectangle (object)?

 
I put some info on the screen with OBJ_LABEL, but the values is hard to see due to the graph in tha background. So, I want to put a background right where the values are... and trying to do this with OBJ_RECTANGLE. Can I somehow get the rectangle "fixed"? Like using OBJPRO_XDISTANCE?

My problem here is that the recatngle needs 2 coordinates.. and if I'm using date and price instead, how can I see what the maximum price in the window are (so that the recatngle gets to the top of the window)?

Thanks in advance!
/johan
 
double WindowPriceMax( int index=0)
 
Thank you phy,

how can I decide the width? Can't find any documentation of the Window...-functions?
 
WindowBarsPerChart()

https://docs.mql4.com/

Documentation is also built into your code editor