Before the introduction of the network functionality provided with the updated MQL5 API, MetaTrader programs have been limited in their ability to connect and interface with websocket based services. But of course this has all changed, in this article we will explore the implementation of a websocket library in pure MQL5. A brief description of the websocket protocol will be given along with a step by step guide on how to use the resulting library.
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.
I am importing data from Websocket :
all is working fine except the 2021.hcc file under bases> Custom > history folder is too big almost 1GB if system keep receiving data for 12 hours
I am using this code to fix hcc file size
this code immediately reduce size of hcc from 1GB to 20MB
To prevent misuse of disk, I am looking for how can i fix code so hcc file always remains low size.
I appreciate and thank you for any help