Download MetaTrader 5

Objects works on viusal mode but not in real or demo accounts - MT4

To add comments, please log in or register
A. Ersin Demirbas
317
A. Ersin Demirbas  

Hi,

I'm using objects to give guidance about the status of expert. I'm successfully using in visual mode for during tests and works perfectly however when I moved expert to demo account (even real) I observe that the labels are not visible on the chart.

I'm not sure which release it changed since I'm not testing the expert on demo account for months. Currently I'm using build 1090 and build 1065, both the same issue exists.

Any idea why the below code (also attached) works in visual mode but not in demo or real accounts?

Thanks in advance.


   ObjectCreate("Bg_Label1",OBJ_LABEL,0,0,0);
   ObjectSetText("Bg_Label1"," Robot text ",9,"Courier New",Orange);
   ObjectSet("Bg_Label1",OBJPROP_CORNER,CORNER_LEFT_UPPER);
   ObjectSet("Bg_Label1",OBJPROP_XDISTANCE,15);
   ObjectSet("Bg_Label1",OBJPROP_YDISTANCE,15);
Files:
A. Ersin Demirbas
317
A. Ersin Demirbas  
Any comments please...
nicholishen
946
nicholishen  
You need to set the chart properties to show object descriptions
A. Ersin Demirbas
317
A. Ersin Demirbas  
nicholishen:
You need to set the chart properties to show object descriptions
Could you please elaborate? 
A. Ersin Demirbas
317
A. Ersin Demirbas  
I solved the problem, thanks.
To add comments, please log in or register