-
Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. - Noor Ghani Rahman: display this text Bold
Set the font.
enum Fonts{ fntArial, // Arial fntTNR, // Times New Roman fntCourier}; // Courier static string font2string[]={"Arial", "Times New Roman", "Courier"}; input Fonts aTextFont = fntTNR; // Text Font input bool aTextIsBold = true; // Text is Bold ⋮ string gFontType = font2string[aTextFont] + (aTextIsBold ? " Bold" : ""); ObjectSetText(NAME_ATR, display, aTextSize, gFontType, aTextColor);
You can use "Arial Black" in stead of "Arial" and or add Bold to the font for example "Tahoma Bold" in stead of "Tahoma"
William Roeder:
Sorry, and also you suggest the correct way of bold text... Thanks so much
-
Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. Set the font.
Marco vd Heijden:
You can use "Arial Black" in stead of "Arial" and or add Bold to the font for example "Tahoma Bold" in stead of "Tahoma"
Yes, Thanks sir
You can use "Arial Black" in stead of "Arial" and or add Bold to the font for example "Tahoma Bold" in stead of "Tahoma"

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 coders...
I have created an indicator but search everywhere to bold the text, the text is created through the objectcreate(), as OBJ_TEXT, but now want to display this text Bold on the screen, is it possible???
the Terminal is mt4..