Load small sample of indicator into robot? Possible?
Created at 07 Jul 2017, 18:16
CT
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
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