TimeFrame: 1 minute
var count = _mtApiClient.CopyRates(TimeSeriesValues.SymbolValue, TimeSeriesValues.TimeFrame, DateTime.Now, DateTime.Now.AddMonths(-12), out array);
[13] [DEBUG] SendCommand: sending '{"Symbol":"GOLD.pro","Timeframe":1,"StartTime":1772766296,"StopTime":1741230296}' ...
[8] [DEBUG] MtRpcClient.DoWrite: sending message: 0;465740;3;1141;{"Symbol":"GOLD.pro","Timeframe":1,"StartTime":1772766296,"StopTime":1741230296}
[13] [DEBUG] SendCommand: received response JSON []
[13] [WARN] SendCommand: Response JSON from MetaTrader is null or empty
Description of problem:
It is not possible to retrieve a large history (in this case one year back). The Terminal64.exe process does not close after closing MetaTrader 5.
When trying to download a shorter history (1 month), I get "MetaTrader is null", but after a longer moment (20 sec) the data is eventually loaded.
Only very short ranges (a few days) work correctly without any issues.
This problem does not occur in MtApi5 v1. It retrieves the selected data range very quickly, even 3 years history.
TimeFrame: 1 minute
var count = _mtApiClient.CopyRates(TimeSeriesValues.SymbolValue, TimeSeriesValues.TimeFrame, DateTime.Now, DateTime.Now.AddMonths(-12), out array);
[13] [DEBUG] SendCommand: sending '{"Symbol":"GOLD.pro","Timeframe":1,"StartTime":1772766296,"StopTime":1741230296}' ...
[8] [DEBUG] MtRpcClient.DoWrite: sending message: 0;465740;3;1141;{"Symbol":"GOLD.pro","Timeframe":1,"StartTime":1772766296,"StopTime":1741230296}
[13] [DEBUG] SendCommand: received response JSON []
[13] [WARN] SendCommand: Response JSON from MetaTrader is null or empty
Description of problem:
It is not possible to retrieve a large history (in this case one year back). The Terminal64.exe process does not close after closing MetaTrader 5.
When trying to download a shorter history (1 month), I get "MetaTrader is null", but after a longer moment (20 sec) the data is eventually loaded.
Only very short ranges (a few days) work correctly without any issues.
This problem does not occur in MtApi5 v1. It retrieves the selected data range very quickly, even 3 years history.