Errors, bugs, questions - page 412

 
Interesting:
That's something I've overlooked. I'll have to check in other places and correct the code.
When you write a program, don't you compile it?
 
sergeev:
When you write a program, do you not compile it?
Of course I compile it.
 

Mostly integer values are stored in long for unification. Therefore, it is necessary to convert to the target type yourself.

Документация по MQL5: Основы языка / Типы данных / Целые типы
Документация по MQL5: Основы языка / Типы данных / Целые типы
  • www.mql5.com
Основы языка / Типы данных / Целые типы - Документация по MQL5
 
Rosh:

Mostly integer values are stored in long for unification. Therefore, it is necessary to convert to the target type yourself.


It is easier to store a variable in long, it is simpler and looks better.
 
Interesting:
It's easier to store it in a long variable, it's simpler and looks good.
But it will require more memory. I find it easier to use explicit conversion.
 
Yedelkin:
Only more memory will be needed. I find it easier to use explicit conversion.

Is it even worth bothering with 100 of these variables and plugging in similar conversions in hundreds of places, spread across 10 modules?

But here, as they say, there is no difference in taste and colour, everyone chooses for himself.

 

Good morning everyone.

I am interested in this question: I am trying to rewrite an mt4 Expert Advisor on mt5

all other conditions being equal, the value of EA on mt4 and mt5

obtained through

MarketInfo(Symbol, MODE_POINT);

in mt4

and the value obtained by the function on mt5

SymbolInfoDouble(Symbol, SYMBOL_POINT);

in my opinion should be equal, if i understand correctly

will be equal, or will be different (given equal working conditions - brokerage company, currency, leverage, etc. - purely theoretically)

thanks!

 
Im_hungry:

thank you!

in which sentence is the question mark ?
 
sergeev:
in which sentence is the question mark ?

Contradictory

Will be the same, or will be different (with equal working conditions -

DC, currency, leverage, etc. - purely theoretically) ?

 
Im_hungry:

will be the same, or will they be different (with equal working conditions - DC, currency, leverage, etc. - purely theoretically) ?

Anything will happen.
Reason: