Bugs and suggestions for improving CopyTicks() and CopyTicksRange() after build 1485. - page 2
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.
{
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
***
Thanks for the message, the bug has been fixed - it will now work in indicators as well. An update will be released shortly.
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
'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
Already read that there was a bug with the indicators. Your code requires a file that is not in my delivery
'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
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.
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.
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.647 UseCopyTicks: Получено 609415 тиков за 195018 мкс
2016.12.02 09:56:29.439 UseCopyTicksRange: Получено 609415 тиков за 343584 мкс
2016.12.02 09:56:29.637 UseCopyTicks: Получено 609415 тиков за 195393 мкс