Download MetaTrader 5

Comment() Text Color

To add comments, please log in or register
Wackena
648
Wackena  
Is it possible to set Comment() text color in an EA?

Wackena
Slava
Moderator
7085
Slava  

No.

But You can use label objects instead of comments

Wackena
648
Wackena  
Thanks,
How do I limit the number of decimal places in this code. I tried NormalizeDouble(), but output has 8 decimal places.
myMA1=NormalizeDouble(myMA1,Digits);
ObjectCreate("Text",OBJ_LABEL,0,0,0);
ObjectSet("Text",OBJPROP_XDISTANCE,2);
ObjectSet("Text",OBJPROP_YDISTANCE,12);
ObjectSetText("Text","MA1 = "+myMA1,10,"Arial",Red);


Wackena

Slava
Moderator
7085
Slava  
ObjectSetText("Text","MA1 = "+DoubleToStr(myMA1,Digits),10,"Arial",Red);
Wackena
648
Wackena  
stringo,
Thank you.
Wackena
Wimontri Songsi
15
Wimontri Songsi  
Slawa:
ObjectSetText("Text","MA1 = "+DoubleToStr(myMA1,Digits),10,"Arial",Red);
Thank you
To add comments, please log in or register