Comment(NormalizeDouble(MarketInfo(Symbol(),MODE_STOPLEVEL),Digits)); Why does the message appear - 0.0 . ???
And I want to get a specific number. What's wrong?
I think normalization is unnecessary, MODE_STOPLEVEL returns a value in points, if I'm not mistaken. Translate the function into a variable of string type and put it in the comment.
MODE_TICKVALUE started to return only zero. before it was working fine, i am puzzled. who can tell me what? can it be a glitch of the trader and not the expert?
MODE_TICKVALUE started to return only zero. before it was working fine, i am puzzled. who can tell me what can it be a glitch of the trader and not the expert?
I'm confused. the program has been upgraded in some places, but it's unlikely that data processing has somehow started to affect market data. and how to work on sundays and sundays? ticks do not come. and my Expert Advisor crashes - division by zero
I'm confused. the program has been upgraded in some places, but it's unlikely that data processing has somehow started to affect market data. and how to work on sundays and sundays? ticks do not come. and my Expert Advisor crashes - division by zero
Put a condition before query that it is greater than zero and at the beginning of OnTick() !
I don't know why it would do that if it worked correctly before.
There are older versions of EA where MODE_TICKVALUE did not exactly return zero but the correct value. now it returns zero. it seems to be something with the terminal. who can tell me how to fix it?
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.
Comment(NormalizeDouble(MarketInfo(Symbol(),MODE_STOPLEVEL),Digits)); Why does the message appear - 0.0 . ???
And I want to get a specific number. What's wrong?
Comment(NormalizeDouble(MarketInfo(Symbol(),MODE_STOPLEVEL),Digits)); Why does the message appear - 0.0 . ???
And I want to get a specific number. What's wrong?
I think normalization is unnecessary, MODE_STOPLEVEL returns a value in points, if I'm not mistaken. Translate the function into a variable of string type and put it in the comment.
Comment(NormalizeDouble(MarketInfo(Symbol(),MODE_STOPLEVEL),Digits)); Why does the message - 0.0 . ???
And I want to get a specific number. What's wrong?
StopLevel sets the server! So, 0 in digits, like many people, me too!
Comment(MarketInfo(Symbol(),MODE_STOPLEVEL)); or Comment(NormalizeDouble(MarketInfo(Symbol(),MODE_STOPLEVEL)*Point,Digits));
MODE_TICKVALUE started to return only zero. before it was working fine, i am puzzled. who can tell me what? can it be a glitch of the trader and not the expert?
MODE_TICKVALUE started to return only zero. before it was working fine, i am puzzled. who can tell me what can it be a glitch of the trader and not the expert?
I'm confused. the program has been upgraded in some places, but it's unlikely that data processing has somehow started to affect market data. and how to work on sundays and sundays? ticks do not come. and my Expert Advisor crashes - division by zero
I'm confused. the program has been upgraded in some places, but it's unlikely that data processing has somehow started to affect market data. and how to work on sundays and sundays? ticks do not come. and my Expert Advisor crashes - division by zero
I don't know why it would do that if it worked correctly before.
There are older versions of EA where MODE_TICKVALUE did not exactly return zero but the correct value. now it returns zero. it seems to be something with the terminal. who can tell me how to fix it?
double value =MarketInfo(symbol, MODE_TICKVALUE);
it still returned zero.