Load small sample of indicator into robot? Possible?

Created at 07 Jul 2017, 18:16
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!
CT

ctid320188

Joined 19.04.2017

Load small sample of indicator into robot? Possible?
07 Jul 2017, 18:16


Hi,

In my robot I am using the following lines of code to load in a BoillingerBand indicator data:

 

TimeFrame bbdsTimeFrame = API.TimeFrame.Minute15;
_bbds = Indicators.BollingerBands(MarketData.GetSeries(bbdsTimeFrame).Close, 20, 2, MovingAverageType.Simple);

 

This takes quite a long time to load as I am guessing it is loading all the historic data into the variable. Is there a way to simply load in the last 20 mins say of historic rather than all of it? I only need the current realtime values moving forward and maybe one timeframe of historic.

Thanks in advance


@ctid320188
Replies

Spotware
25 Jul 2017, 09:13

Dear Trader,

Thanks for posting this question in the forum. Currently, there is no way to limit data for history loading. There are no immediate plans to change this but we can consider doing this if there is demand from other traders as well.

Best Regards,

cTrader Team


@Spotware