Libraries: Сode that records balance and equity charts and calculates additional optimization criteria - page 2

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: ница

Update:

The optimization time for each pass has been added.
 

And other changes.

Update:
4 criteria added:
Updated to v 1.07

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:

save_OnTick(TimeCurrent(), AccountInfoDouble(ACCOUNT_BALANCE), AccountInfoDouble(ACCOUNT_EQUITY));

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.