If font name uses "::", font will be loaded from EX5 resource. If font name is specified with extension, font is loaded from file, at that - if path starts with "\" or "/", then file is searched relatively to MQL5 directory, otherwise it is searched relatively to path of EX5 file that called TextSetFont().
Устанавливает шрифт для вывода текста методами рисования и возвращает результат успешности этой операции. По умолчанию используется шрифт Arial и размер -120 (12 pt). [in] Размер шрифта, который может задаваться положительными и отрицательными значениями. При положительных значениях размер выводимого текста не зависит от настроек размеров...
Print("Баланс на счёте = ",AccountInfoDouble(ACCOUNT_BALANCE));
printf("ACCOUNT_BALANCE = %G",AccountInfoDouble(ACCOUNT_BALANCE));
If you remove %G in pintf, the value will not be displayed, while in Print it will be displayed without %G
Print also shows a balance value of 10000.0, while printf shows a simple integer 10000
I am more interested in what is the difference between Print and Printf and most importantly, why it is not shown without %G. I did not understand anything in the reference book.
If I don't catch the logic - then why in C99\C++ is the result https://www.mql5.com/ru/forum/1111/page2140#comment_6484866 equal to 3 in both cases?
Because the logic is different there.
Balance:0.00007 USD
Can this 0.000007 be written off somehow? It's not a convenient figure...
Balance:0.00007 USD
Can this 0.000007 be written off somewhere? It's not a convenient figure...
Run the calculations in MQL Cloud.
Run the calculations in MQL Cloud.
Oh right ! ...
Run the calculations in MQL Cloud.
It's from 2oue if I'm not mistaken)
In general, yes, it is the dollar amount, not satosh, to show so many zeros. Need to correctIf automatic trading is disabled, will the EA not work at all?
It will work, it will not trade.
It will work, it will not trade.
::TextSetFont does not load a font from a file
https://www.mql5.com/ru/docs/objects/textsetfont
Here's an interesting one:
If you remove %G in pintf, the value will not be displayed, while in Print it will be displayed without %G
Print also shows a balance value of 10000.0, while printf shows a simple integer 10000
I am more interested in what is the difference between Print and Printf and most importantly, why it is not shown without %G. I did not understand anything in the reference book.