Hi qjol,
Thanks for your reply, \n what does that mean?
wacs:
Hi qjol,
Thanks for your reply, \n what does that mean?
Comment("Hello, its me"); -->> output is Hello, its me
Comment("Hello,\n its me"); -->> output is:
Hello,
its me
But Comment Function ALWAYS is on Top Left in Chart.
If you need Top Right Hand Corner - like you wrote - you dont need Comment. Take a look at Object an label, as example:
void WriteLabel(string sName,string sValue,color cValue,int Dist) { if (ObjectFind(sName)<0) { ObjectCreate(sName,OBJ_LABEL,0,0,0,0,0); ObjectSet(sName,OBJPROP_CORNER,1); ObjectSet(sName,OBJPROP_XDISTANCE,25); ObjectSet(sName,OBJPROP_YDISTANCE,Dist); } ObjectSetText(sName,sValue,12,"Tahoma",cValue); }

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
How do I have the comment() function display text in the top right hand corner or bottom right hand corner of the window?
Thanks in advance!