This block creates one of these objects:
https://docs.mql4.com/constants/objectc ... t/obj_text
https://docs.mql4.com/constants/objectc ... /obj_label
In both cases you have X and Y.
OBJ_LABEL - this object is placed at absolute position over the chart - X and Y are pixel offsets from the upper left corner. You can move the candles, you can zoom in and zoom out... this does not change the position. The spread meter on the bottm is made out of such type of objects.
OBJ_TEXT - coordinates have absolute position from the candles perspective - X is the Time at which the candle exists and Y is the price. If you move candles, all texts move with the candles, just like all the other arrows.
As you can see, these are two different worlds. I don't know how to find the X/Y offset as pixels from the upper left corner of the chart if the object is OBJ_TEXT