Skripte: sHistoryExport - praktisches Skript, um historsiche Daten im МetaТrader 4 Format zu exportieren
2021.01.05 21:10:32.910 HistoryExport (Usa500,H1) Downloading history and writing files: 0.0% complete...
// no more than 100 failed attempts if(++fail_cnt >= 100) return false;
Doesn't matter if it is 100 or 1 million attempts, the following block never succeeds:
//copying of next part forces data loading if (CopyTime(symbol,period,size-1,1,times)==1) { return true; }
//Enough data on server? if (first_server_date>TimeCurrent()-size*PeriodSeconds(period)) return false;
this hard condition is *always* returning false because the recognized first_server_date is usually nearer to the present than the expected history would reach into the past. Especially if you assign in the charts option the "max bars in chart" to "unlimited" then TERMINAL_MAXBARS will return 1000000 and thus this condition would always consider that there is never enough history loaded.
2021.01.05 21:10:32.910 HistoryExport (Usa500,H1) Downloading history and writing files: 0.0% complete...
Doesn't matter if it is 100 or 1 million attempts, the following block never succeeds:
this hard condition is *always* returning false because the recognized first_server_date is usually nearer to the present than the expected history would reach into the past. Especially if you assign in the charts option the "max bars in chart" to "unlimited" then TERMINAL_MAXBARS will return 1000000 and thus this condition would always consider that there is never enough history loaded.
You're right, I just copied this code from the standard library.
I've already rewritten these functions to fit my needs. But not ready to update the publication at the moment.
- Freie Handelsapplikationen
- Über 8.000 Signale zum Kopieren
- Wirtschaftsnachrichten für die Lage an den Finanzmärkte
Sie stimmen der Website-Richtlinie und den Nutzungsbedingungen zu.
sHistoryExport - praktisches Skript, um historsiche Daten im МetaТrader 4 Format zu exportieren:
Export aller notwendigen Instrumente und Timeframes mit einem Klick mit Laden und Überprüfen der Historie
Autor: Andrey Khatimlianskii