• Sign up >>

Text label not show up on Main chart

To add comments, please log in or register
hhchenfx
1193
hhchenfx  

Hi,

I try to draw a text and put it vertical from High of a bar.

The problem is that when the High is near top of screen, the text is created but not show up.

It only shows up when I squeeze the chart.

Is there any way to make the Text show up even partially?

Thank you so much.

HHC

void OnStart()
  {
   long chart_ID=ChartID();
  //---- obj_arrow, window to draw, time, place
 
      ObjectCreate("MyLabel", OBJ_TEXT,0, Time[50], High[50]);
      //--- set the text
         ObjectSetString(chart_ID,"MyLabel",OBJPROP_TEXT,"Text goes here... very long");
      //--- set font size
         ObjectSetInteger(chart_ID,"MyLabel",OBJPROP_FONTSIZE,10);
      //--- set angle
         ObjectSet("MyLabel", OBJPROP_ANGLE, 90); 
}
Keith Watford
Moderator
21002
Keith Watford  

Do not double post.

I have deleted your other topic.

hhchenfx
1193
hhchenfx  

I am sorry.

I totally forgot to delete it. So focus on testing.

I just explored to this point and created a simpler question.

To add comments, please log in or register