MarketData.GetSeries doesnt work properly (for multi timeframes)
MarketData.GetSeries doesnt work properly (for multi timeframes)
30 Apr 2020, 23:28
MarketData.GetSeries doesnt work properly!!!
For example, If indicator is on Hour1 Timeframe and I want to get DataSeries from Minute1 Timeframe, it only get truncated Minute1 DataSeries.
DataSeries.Close.Count = 6000
M1DataSeries.Close.Count = 9000, but it should be at least 6 000 x 60 = 360 000!
And when you scroll to the beginning DataSeries.Close is updated, but M1DataSeries.Close is the same = 9000.
Please, fix it!
Replies
PanagiotisCharalampous
04 May 2020, 09:42
Hi dandi10,
If you need to load more historical data for other timeframes, you need to use LoadMoreHistory function. Check here for more information.
Best Regards,
Panagiotis
@PanagiotisCharalampous
firemyst
01 May 2020, 12:29
You should post some code to demonstrate what you're saying.
I have numerous bots and indicators that run on multiple time frame within the same chart without any issues.
So perhaps it could be an issue with what you're doing and not actually with the API.
@firemyst