Download MetaTrader 5

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

To add comments, please log in or register
Are you used to trading from your smartphone? Mobile version of MetaTrader 5 will suit you best!
Fa Cao
1141
Fa Cao 2014.01.24 06:47 

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

Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2014.01.24 09:43  
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)
Fa Cao
1141
Fa Cao 2014.01.25 11:19  
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
To add comments, please log in or register