Hello
i have an obj_text object, how can i set the position on top right of the chart?
Thank you very much!
ObjectSet(“name”, OBJPROP_CORNER, 1);
Where “name” is your objects name and the number on the end is 0-3 (I don’t remember which number is which corner, but you should be able to figure it out).
Here’s a piece of code from my old Cowabunga indicator, just to give an example.
if (TrendON == -1)
{
trend="DOWN";
c = Red;
}
if (TrendON == 1)
{
trend="UP";
c = Blue;
}
ObjectCreate("trend", OBJ_LABEL, 0, 0, 0);
ObjectSet("trend", OBJPROP_CORNER, 1);
ObjectSet("trend", OBJPROP_XDISTANCE, 10);
ObjectSet("trend", OBJPROP_YDISTANCE, 1);
ObjectSetText("trend", trend, 24, "aerial ", c);