hini #: Could it be designed so that the header is saved only once using UTF-8, and the subsequent data is saved using ASCII? This would have little impact on the file.
We are talking about HTML files. If you always save it in ASCII,
f=FileOpen(file_name_HTML,FILE_WRITE|FILE_ANSI);
then probably only converting UTF characters to character codes will help. Like this: ница
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.
Could it be designed so that the header is saved only once using UTF-8, and the subsequent data is saved using ASCII? This would have little impact on the file.
then probably only converting UTF characters to character codes will help. Like this: ница
Update:
The optimization time for each pass has been added.

And other changes.
4 criteria added:
Updated to v 1.08
- operation is accelerated 17 times (depends on the symbol)
The codebase doesn't know about it yet:
error 256: undeclared identifier 'MQL_MATH_MODE'
That's why I'm attaching it here.
It will work starting from b6360.
The call changed with each tick, instead of:
It became like this:
save_OnTick(TimeCurrent());the values will not be read on every tick, but only with changes, which has accelerated the work.