Placing a Label "xyText" in a Window to a certain Price/Time

 

Dear Forum,

I just want to place some text inside a Window onto a certain position. I get it done by using x/y coordinates but not when using:

 

 ObjectSetInteger(0,label_name,OBJPROP_TIME,Time);

 ObjectSetDouble(0,label_name,OBJPROP_PRICE,Price);

Do you have some sample code on how to place text inside a window?

 

2nd Issue: I want to draw a line inside a window : starting at Price1/Time1 and ending Price2/Time2. The values will be changed during execution and so the line should move. Do you have an code example on how to manage this ?

Thanks,

Thomas 

Reason: