Bugs and suggestions for improving CopyTicks() and CopyTicksRange() after build 1485. - page 2

 
Alexey Volchanskiy:

I think it's just a bug in the Web documentation, it's really not in ME yet. Or the function is still in development. Second, you're requesting data from somewhere from 1970 and wonder why ticks from the last century aren't giving back ))!!! What are you smoking there?

That's how it works.

void OnStart()
{
    datetime dt1 = D'2016.11.28 00:00:00', dt2 = D'2016.11.30 00:00:00';
    MqlTick ticks[];
    ulong start, msc;
    //--- Замеряем время старта перед получением тиков
    start=GetMicrosecondCount();
    int copied = CopyTicksRange( _Symbol, ticks, COPY_TICKS_ALL, dt1*1000, dt2*1000);
//--- Рассчитаем, за сколько мс получена история
    msc=GetMicrosecondCount()-start;
    Print("copied=", copied, "   msc=", msc);
    return;
}

// вывод
2016.12.01 04:52:08.134 TestCopyTicks (EURUSD.m,M15)    copied=333081   msc=1294871
2016.12.01 04:52:16.877 TestCopyTicks (EURUSD.m,M15)    copied=333081   msc=318596

***

Confirmed: from the script and on futures, everything works. Even with __DATE__ macro substitution. From the indicator - still no response.
 
The function doesn't seem to work at all in the indicators. Not with any recording.
 
Thanks for the message, the bug has been fixed - it will now work in indicators as well. An update will be released shortly.
 
MetaQuotes Software Corp.:
Thanks for the message, the bug has been fixed - it will now work in indicators as well. An update will be released shortly.
Thank you. Will there be a beta or an official version?
 
Alexey Kozitsyn:

Alexey, thank you for joining the tests. As you can see, I have tried both from a specific date and to a specific date and without a date. But the point is: 1. I used __DATE__ and there seems to be trouble with macro substitutions; 2. I tested on futures; Yes, if you look at the documentation - it should have at least started loading ticks. However - nothing happens.

Have you tried to run my indicator?

I've already read that there was an error in working with indicators. Your code requires a file that is not in my delivery

can't open "C:\Forex\School\MT5_Roboforex\MQL5\include\errordescription.mqh" include file       test_CopyTicksRange.mq5 12      11
'ErrorDescription' - function not defined       test_CopyTicksRange.mq5 82      59
implicit conversion from 'number' to 'string'   test_CopyTicksRange.mq5 82      59
'ErrorDescription' - function not defined       test_CopyTicksRange.mq5 117     59
implicit conversion from 'number' to 'string'   test_CopyTicksRange.mq5 117     59
 
Alexey Volchanskiy:

Already read that there was a bug with the indicators. Your code requires a file that is not in my delivery

can't open "C:\Forex\School\MT5_Roboforex\MQL5\include\errordescription.mqh" include file       test_CopyTicksRange.mq5 12      11
'ErrorDescription' - function not defined       test_CopyTicksRange.mq5 82      59
implicit conversion from 'number' to 'string'   test_CopyTicksRange.mq5 82      59
'ErrorDescription' - function not defined       test_CopyTicksRange.mq5 117     59
implicit conversion from 'number' to 'string'   test_CopyTicksRange.mq5 117     59


Hm, strange, this file should be in the default package.
 
Alexey Kozitsyn:
Hmm, strange, this file should be in the default package.

Checked with Alpari, Intaforex, MQ, Roboforex - no such file. Can you attach it?

I have it in 4, but in 5 for some reason it is not included, I noticed it a long time ago.

 
Alexey Volchanskiy:

Checked with Alpari, Intaforex, MQ, Roboforex - no such file. Can you attach it?

There is one in 4, but in 5 it is not included for some reason, I noticed it a long time ago.

No problem. The file is build 1486.
Files:
 
Alexey Kozitsyn:
No problem. The file is build 1486.

I must think it was once in the supply, I also have 1486 and there is no such file even from MQ. There is a description line in it:

#property copyright "2012, MetaQuotes Software Corp."

 

Checked in build 1488. It works:

2016.12.02 09:56:21.449 UseCopyTicksRange: Получено 609415 тиков за 355551 мкс
2016.12.02 09:56:21.647 UseCopyTicks: Получено 609415 тиков за 195018 мкс
2016.12.02 09:56:29.439 UseCopyTicksRange: Получено 609415 тиков за 343584 мкс
2016.12.02 09:56:29.637 UseCopyTicks: Получено 609415 тиков за 195393 мкс