want bold text on the terminal chart

 

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..

 
  1. 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.

  2. 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 Boldstring 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:
  1. 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.

  2. Set the font.

Sorry, and also you suggest the correct way of bold text... Thanks so much
 
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
 
Noor Ghani Rahman:

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..

use IMPACT font name