why I can't see what I have create on my chart?

 

Now I have made codes as below in " int init()" in my EA

    ObjectCreate("a",OBJ_LABEL,0,0,0); 
    ObjectSet("a",OBJPROP_CORNER,2);
    ObjectSet("a",OBJPROP_XDISTANCE,20);
    ObjectSet("a",OBJPROP_YDISTANCE,20);
    ObjectSetText("a","注:未计算平台交易手续", 12, "", Snow);

when the EA runs, I can't see this object, but I know it exist because I can find it in "Objects list", but I don;t know why it can't be shown on chart.

In the fact, some time it can be show, some time it can't, I want to know why, and how I can make it be shown always.

In addition, what the difference between "OBJ_LABEL" and "OBJ_TEXT " here?

thank you

 
vx0532:

Now I have made codes as below in " int init()" in my EA

when the EA runs, I can't see this object, but I know it exist because I can find it in "Objects list", but I don;t know why it can't be shown on chart.

In the fact, some time it can be show, some time it can't, I want to know why, and how I can make it be shown always.

In addition, what the difference between "OBJ_LABEL" and "OBJ_TEXT " here?

thank you

OBJ_LABEL has a position specified in pixels, OBJ_TEXT has a position specified by a time and a price.

Try a more contrasting colour than Snow (white)
 
RaptorUK:
OBJ_LABEL has a position specified in pixels, OBJ_TEXT has a position specified by a time and a price.

Try a more contrasting colour than Snow (white)


Thank you
Reason: