Scripts: ThirdPartyTicks - page 5

 

hi,

i would test this code, but the compiler stamp an error:

'ZipLocalHeaderOpen' has constructor and cannot be used as union member    ZipHeader.mqh    52    23

error-script 


Can you help me to find a solution to compile without error? many thanks

Piero

 
Piero Lenzo:

Can you help me to find a solution to compile without error?

https://www.mql5.com/ru/forum/64405/page3#comment_7721376

Обсуждение статьи "Работаем с ZIP-архивами средствами MQL5 без использования сторонних библиотек"
Обсуждение статьи "Работаем с ZIP-архивами средствами MQL5 без использования сторонних библиотек"
  • 2017.08.10
  • www.mql5.com
Этот модификатор был введен разработчиками торговой платформы MetaTrader 5 для того, чтобы можно было распаковывать ответ некоторых серверов, используя стандартную функцию WebRequest.
 

Thanks fxsaber, now it's all ok!

 

The archive of third-party ticks has already reached 5 GB (10800 files). Unpacking+parsing takes 6 minutes - 860 million ticks.


When you work with such large numbers, brakes appear in places you rarely pay attention to. For example, getting a list of files or ArrayResize.

  • A lot of work has been done to fight "bottle necks".
  • Added even more detailed logging.
  • Resolved compilation issue on new MT5 builds.
  • Made small but sometimes important fixes for further work with generated custom symbols.
  • Code became ugly in some places.
The update will be available after moderation.
 
Thanks for the update
 

When parsing is going on hundreds of millions of values, every operator in seemingly optimal code starts to play a role.

I made tuning, increasing the speed by 1.5 times - 4.5 million MqlTicks per second. It is only twice slower than CopyTicks.

[Deleted]  
Hrenfx got sucked into the fifth metac. But at first he was on the right path - writing his own counting. :)
 

Updated to working state.

ZY zip-archive is not actual - contains old version.

 
Creating a filtered analogue from the source symbol for acceleration in Tester.
Files: