text in the right corner

 

hello


i have a problem with an indicator


i have an indicator to show the atr in pips

this will be shown in the left corner below the account information


Comment(prefix, "ATR (", periods, "): ", buffer[0], " pips");


now i like to move it to the right corner because in the left are very often some bars


does anybody have an idea to create this object?


kind regards

 
amando:

hello


i have a problem with an indicator


i have an indicator to show the atr in pips

this will be shown in the left corner below the account information


Comment(prefix, "ATR (", periods, "): ", buffer[0], " pips");


now i like to move it to the right corner because in the left are very often some bars


does anybody have an idea to create this object?


kind regards


It is possible with objects only. See: Link

 
ggekko:

It is possible with objects only. See: Link

and how i can input there an obj_text?

i'm not the best in object programming --> old vb programmer ;-)


thanks for help

 
amando:

and how i can input there an obj_text?

i'm not the best in object programming --> old vb programmer ;-)


thanks for help


Here is an example:

ObjectCreate("MyText",OBJ_LABEL,0,0,0,0,0);
ObjectSet("MyText",OBJPROP_CORNER,Corner);
ObjectSet("MyText",OBJPROP_XDISTANCE,20);
ObjectSet("MyText",OBJPROP_YDISTANCE,20);
ObjectSetText("MyText","This is my text.",8,"Tahoma",Black);

Corner:0,1,2,3

0 is the left upper, 3 is the right lower corner.