Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I am trying to solve this problem with my code. can someone help me look at this and tell me what is the problem or how to fix the error?
//+----------------------------------------------+
//| DASHBOARD TITLE HEADINGS |
//+----------------------------------------------+
TextSize(widthTitle,heightTitle,title,FontSizeTitle,FontName);
TextSize(widthTitleHide,heightTitle,titleHide,FontSizeTitle,FontName);
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void TextSize(uint &width_,
uint &height_,
string text,
int fontSize =8,
string fontName ="Arial",
uint flags =FW_NORMAL,
int orientation =0
)
{
TextSetFont(fontName,fontSize*-10,flags,orientation);
TextGetSize(text,width_,height_);
width_+=6;
height_+=2;
}