A variable, not a quote. There is a count in a string variable, and the double is converted to a string variable with the specified accuracy. This is of course strong.
By the way, this is on the subject of a quote in five digits coming in with more than five decimal places. I wanted to do an automatic check, turns out it's not that easy in this language. In the meantime, I checked it manually with a printer. There are no more than five decimal places, how often does that happen? Maybe it was on terminal 4?
pribludilsa #: Okay, there's a systematic ignoring of messages. We should start a thread again.
there have already been topics on this subject. Into a string and the number of strings to count. You really have to count the number of digits before the decimal point first. You can convert it to an integer. And it's just as awkward to string))))
Check the availability of quotes on AUDUSD, on the correct TF
That was exactly the problem. The matter is that I was testing on a day off (Sunday) and "downloaded" a quote archive for the required symbol (AUDUSD), but it turned out that they just couldn't be downloaded on the day off, because my forex dealer's servers were unavailable on that day off. And today on Monday the downloading of the quote archive and the testing was successful.
MakarFX #: I'm sorry, I was wrong, I didn't know it myself.
That's ok, your replies in private messages were much more valuable.
It's really nice to have people answering and helping each other out here. Not all answers can be found in the documentation)
there have already been topics on this subject. Into a string and the number of strings to count. You really have to count the number of digits before the decimal point first. You can convert it to an integer. And it's a bit tricky to bring)))) to a string, too.
Yes, I wanted to do that too, only conversion of double to string is done with specified accuracy, if accuracy is not specified, 8 digits by default.
there have already been topics on this subject. Into a string and the number of strings to count. You really have to count the number of digits before the decimal point first. You can convert it to an integer. And it's just as awkward to string))))
The integer conversion, yes, that's probably the only one. It occurred to me too, but it seemed too complicated to do some sort of multiplication cycle or division by 10. I haven't thought it through yet.
Is there anything I don't know? Also it is not possible to get bar data from other instruments by tester time, it will be received by current time. That's why I can't test multicurrency even just in the calculation part in 4ka.
I always thought that MT4 tester fully emulates the environment of one instrument, and MT5 the entire environment that is available.
Or is it not so?
Valery, pay attention to the line
sd = (int)MarketInfo("EURJPY", MODE_DIGITS);
in my code... I've been using the hex functions for a long time, but here's a similar function
SymbolInfoInteger("EURJPY", SYMBOL_DIGITS);
gave a stackey 0.
So, think about where the bug is... And since mt4 refuses to support it, you can assume it will never be fixed...
Everything else has to be checked. I haven't bothered with it for so long that I don't even want to remember.
https://www.mql5.com/ru/docs/predefined/_digits
https://www.mql5.com/ru/docs/predefined/_digits
Okay, there's a systematic ignoring of messages. We should start a thread again.
there have already been topics on this subject. Into a string and the number of strings to count. You really have to count the number of digits before the decimal point first. You can convert it to an integer. And it's just as awkward to string))))
In the mt4 tester it is not possible to open orders on other pairs, everything else is available without problems.
Check the availability of quotes on AUDUSD, on the correct TF
I'm sorry, I was wrong, I didn't know it myself.
It's really nice to have people answering and helping each other out here. Not all answers can be found in the documentation)
there have already been topics on this subject. Into a string and the number of strings to count. You really have to count the number of digits before the decimal point first. You can convert it to an integer. And it's a bit tricky to bring)))) to a string, too.
Yes, I wanted to do that too, only conversion of double to string is done with specified accuracy, if accuracy is not specified, 8 digits by default.
there have already been topics on this subject. Into a string and the number of strings to count. You really have to count the number of digits before the decimal point first. You can convert it to an integer. And it's just as awkward to string))))
Is there anything I don't know? Also it is not possible to get bar data from other instruments by tester time, it will be received by current time. That's why I can't test multicurrency even just in the calculation part in 4ka.
I always thought that MT4 tester fully emulates the environment of one instrument, and MT5 the entire environment that is available.
Or is it not so?
Valery, pay attention to the line
in my code... I've been using the hex functions for a long time, but here's a similar function
gave a stackey 0.
So, think about where the bug is... And since mt4 refuses to support it, you can assume it will never be fixed...
Everything else has to be checked. I haven't bothered with it for so long that I don't even want to remember.
Alexey Viktorov #:
I have been using Friday functions for a long time
Can you suggest where I can learn MQL5 (in Russian)?