Errors, bugs, questions - page 2121

 
A100:

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

 
Vladimir Pastushak:

Balance:0.00007 USD

Can this 0.000007 be written off somewhere? It's not a convenient figure...

Run the calculations in MQL Cloud.

 
Sergey Dzyublik:

Run the calculations in MQL Cloud.

Oh right ! ...

 
Sergey Dzyublik:

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 correct
 
If automatic trading is disabled, will the EA not work at all?
 
Aleksey Rodionov:
If automatic trading is disabled, will the EA not work at all?

It will work, it will not trade.

 
Vladimir Batrudinov:

It will work, it will not trade.

Because I see the code runs even if it's disabled. I see, thank you.
 

::TextSetFont does not load a font from a file

https://www.mql5.com/ru/docs/objects/textsetfont

Note

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

Документация по MQL5: Графические объекты / TextSetFont
Документация по MQL5: Графические объекты / TextSetFont
  • www.mql5.com
Устанавливает шрифт для вывода текста методами рисования и возвращает результат успешности этой операции. По умолчанию используется шрифт Arial и размер -120 (12 pt). [in]  Размер шрифта, который может задаваться положительными и отрицательными значениями. При положительных значениях размер выводимого текста не зависит от настроек размеров...
 

Here's an interesting one:

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.