tara: You posted the wrong part of the code:( you should post your function.
Part of the code is correct, I cut it out and made it as an Expert Advisor, after that I ran it through strategy tester and got strange result, as ifDoubleToStrMorePrecision functionofstdlib.mqhlibrary is glitchy
Zhunko: The size of the files is limited by the size of the drive, but its display is limited by the size of the memory. I don't think you have that much data.
That's the thing, I have an idea to write a grail, but it requires a very large database, so I'm wondering which way to approach 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.
You posted the wrong part of the code:( you should post your function.
If you mean DoubleToStrMorePrecision, it is a library function :)
Then, off to the annals for knowledge :)
Either show me or go there yourself.
Search rules
https://www.mql5.com/ru/articles/1561
Search rules
https://www.mql5.com/ru/articles/1561
Is this an article about library functions?
You posted the wrong part of the code:( you should post your function.
Can you show me values of hours, minutes and seconds before inserting into general number?
What is the practical value of this conversion?
#include <stdlib.mqh> bool once=false; int start() { if (once==false) { double DTM; // дата и время в формате 0,20130429164459 int YY=TimeYear( TimeCurrent()); // Year int MN=TimeMonth( TimeCurrent()); // Month int DD=TimeDay( TimeCurrent()); // Day int HH=TimeHour( TimeCurrent()); // Hour int MM=TimeMinute( TimeCurrent()); // Minute int SS=TimeSeconds(TimeCurrent()); // Second Alert ("Значение переменной YY = ", YY); Alert ("Значение переменной MN = ", MN); Alert ("Значение переменной DD = ", DD); Alert ("Значение переменной HH = ", HH); Alert ("Значение переменной MM = ", MM); Alert ("Значение переменной SS = ", SS); DTM = YY*0.0001+MN*0.000001+DD*0.00000001+HH*0.0000000001+MM*0.000000000001+SS; Alert ("Значение переменной DTM с 06 знаками равно ", DoubleToStrMorePrecision(DTM,6)); Alert ("Значение переменной DTM с 07 знаками равно ", DoubleToStrMorePrecision(DTM,7)); Alert ("Значение переменной DTM с 08 знаками равно ", DoubleToStrMorePrecision(DTM,8)); Alert ("Значение переменной DTM с 09 знаками равно ", DoubleToStrMorePrecision(DTM,9)); Alert ("Значение переменной DTM с 10 знаками равно ", DoubleToStrMorePrecision(DTM,10)); Alert ("Значение переменной DTM с 11 знаками равно ", DoubleToStrMorePrecision(DTM,11)); Alert ("Значение переменной DTM с 12 знаками равно ", DoubleToStrMorePrecision(DTM,12)); Alert ("Значение переменной DTM с 13 знаками равно ", DoubleToStrMorePrecision(DTM,13)); Alert ("Значение переменной DTM с 14 знаками равно ", DoubleToStrMorePrecision(DTM,14)); Alert ("Значение переменной DTM с 15 знаками равно ", DoubleToStrMorePrecision(DTM,15)); once=true; } return(0); }The conclusion is this:
The practical value is not yet fully realized, but it is secondary, here I need to understand why the result of calculations is not what is expected.
The size of the files is limited by the size of the drive, but its display is limited by the size of the memory. I don't think you have that much data.
For some reason, I get it right (except for the Cyrillic alphabet)