Scripts: sHistoryExport - handy script to export the historical data in the МТ4 format - page 5

 
Andrey Khatimlianskii

Could you please tell me how to configure the script so that it adds quotes every minute?

 

Compilation results (MetaEditor v5. bld 2897 ) :

'StringToPeriod' - cannot convert enum sHistoryExport.mq5 75 45

'PeriodToString' - undeclared identifier sHistoryExport.mq5 105 85

'period' - some operator expected sHistoryExport.mq5 105 102

implicit conversion from 'number' to 'string' sHistoryExport.mq5 105 85

'+' - unexpected token sHistoryExport.mq5 105 113

23 errors, 5 warnings 24 6

 
Greff:

Compilation results (MetaEditor v5. bld 2897 ) :

'StringToPeriod' - cannot convert enum sHistoryExport.mq5 75 45

'PeriodToString' - undeclared identifier sHistoryExport.mq5 105 85

'period' - some operator expected sHistoryExport.mq5 105 102

implicit conversion from 'number' to 'string' sHistoryExport.mq5 105 85

'+' - unexpected unexpected token sHistoryExport.mq5 105 113

23 errors, 5 warnings 24 6

Step 1: Installation

Upload the script to the <data directory>\MQL5\scripts\ directory.

Load the CheckHistory and String libraries into the <data directory>\MQL5\Include\komposter\ directory.

Compile the script.

CheckHistory - Функция для проверки и загрузки истории
CheckHistory - Функция для проверки и загрузки истории
  • www.mql5.com
Немного доработанная функция загрузки истории от MetaQuotes.
 

Thanks Andrey,  the code works very well.  

Is it possible to add a timer to automatically download the csv periodically every x minutes? 

Or even set a specific time to download?

https://www.mql5.com/en/docs/event_handlers/ontimer&nbsp;

Thank you.

 

Terminal crashes

PR      3       16:53:57.997    History 'GTN' file write error [18]
EH      3       16:53:57.997    HistorySymbol   synchronization selection failed [GTN]
OM      2       16:56:01.040    Terminal        crashlog generated