vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
511 stars 276 forks source link

iTime, iTimeArray - does not take the last day of quotes #276

Open duzers opened 1 year ago

duzers commented 1 year ago
            string symbol = "OIL.WTI+";
            var itimeshift = apiClient.iTime(symbol, ChartPeriod.PERIOD_M1,0);
....
 var iTimeArray = apiClient.iTimeArray(symbol, ChartPeriod.PERIOD_M1);

Metatrader 4. I try get history of data, but both functions does not take the last day of quotes. Today is 19.02.2023 (Sunday). Last day of data 17.02.2023 (friday), but both functions finish update of quotes on 16.02.2023. And also a note. I purposely do not open the quotation chart and I don't restart of Metatrader, because these actions update the missing day.