MarketData.GetSeries doesnt work properly (for multi timeframes)

Created at 30 Apr 2020, 23:28
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DA

dandi10

Joined 30.04.2020

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!


@dandi10
Replies

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

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 

Join us on Telegram

 


@PanagiotisCharalampous

dandi10
05 May 2020, 21:48

RE:

PanagiotisCharalampous said:

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 

Join us on Telegram

 

PanagiotisCharalampous - right! thx for your help! :)


@dandi10