Tick story - page 21

 
Karputov Vladimir:
Can we consider this approach correct: requesting n-ticks in the indicator each time we call OnCalculate()? How would the trade server "look" at it?
What is the problem? If n is less than locally available ticks.dat - it will request it from files. If more - address to the server, it will start loading. New ticks in ticks.dat are added automatically.
 
Karputov Vladimir:
Can we consider this approach correct: requesting n-ticks in the indicator each time we call OnCalculate()? How will the trade server "look" at it?

There are no problems.


By the way, we have already fixed the request for ticks after a connection break. There will be a release today.

 
Renat Fatkhullin:
No problem.
Renat, will overloading of CopyTicks() function for date-to-date request be implemented? Servicedesk request #1330765
 
Renat Fatkhullin:

There are no problems.


By the way, the request for ticks after a break in communication has already been fixed. There will be a release today.

Thank you!
 
Renat Fatkhullin:

No problem.


By the way, the request for ticks after a connection break has been fixed. There will be a release today.

It's working!

2015.10.30 22:45:01.268 Terminal        MetaTrader 5 x64 build 1210 started (MetaQuotes Software Corp.)
2015.10.30 22:45:01.269 Terminal        Windows 10 Pro (x64 based PC), IE 11.00, UAC, Intel Core i3-3120M  @ 2.50GHz, RAM: 1155 / 3981 Mb, HDD: 66258 / 234136 Mb, GMT+02:00
***
2015.10.30 22:45:04.113 Network '*******': authorized on MetaQuotes-Demo through Access Point EU1 (ping: 49.19 ms)

Now after a break the ticks are resumed via CopyTicks!

 
Karputov Vladimir:

It's working!

Now the ticks are resumed via CopyTicks after a break!

So, in build 1210 CopyTicks() function works correctly and supports all declared functionality?
 
Михаил:
So, in build 1210 CopyTicks() function works correctly and supports all declared functionality?

No. At this stage you can:

  1. request ticks,
  2. request ticks from a certain date.
Only the MetaQuites-Demo trading server supports the new functionality so far.

 
Karputov Vladimir:

No. At this stage you can:

  1. request ticks,
  2. request ticks from a specific date.
Only the MetaQuites-Demo trading server supports the new functionality.

Got it. Thank you.
 

When viewing the array obtained with CopyTicks inCOPY_TICKS_INFO mode(only Bid and Ask), the Bid and Ask fields contain zeros. Is this normal?

EURUSD:

06.11.2015 6:59         1.08828 1.08839
06.11.2015 6:59         1.08829 1.08836
06.11.2015 12:27        0       0
06.11.2015 12:29        1.08711 1.08718
06.11.2015 15:29        1.08565 1.08575
06.11.2015 15:29        1.08564 1.08577
06.11.2015 15:29        1.08564 1.08575
06.11.2015 15:29        1.08478 1.08573
06.11.2015 15:29        1.08437 0
06.11.2015 15:29        1.08432 1.08549
06.11.2015 15:29        1.08455 1.08549
06.11.2015 15:29        1.08432 1.08544
06.11.2015 15:29        1.08432 1.08494
06.11.2015 15:29        0       0
06.11.2015 15:29        1.08284 1.08424
06.11.2015 15:29        1.08316 1.08435
06.11.2015 15:29        1.0833  1.08414
06.11.2015 15:29        1.08302 1.08398
06.11.2015 15:29        1.083   1.08398

The price data is selective.

 
Karputov Vladimir:

When viewing an array obtained with CopyTicks inCOPY_TICKS_INFO mode(Bid and Ask only), the Bid and Ask fields contain zeros. Is this normal?

EURUSD:

The price data is selective.

Someone from MQ wrote about it, like Renat (?) that it's the raw data which has come to the server. So, what has come is what we give. And there may be zeros on bid or ask, you see zeros on both quotations.
Reason: