hi.
in my strategy, l create a bbands :
AppliedPrice appliedPrice = AppliedPrice.CLOSE;
// Incrémentation des Indicateurs
double Kama = indicators.kama(instrument, Period.FIFTEEN_MINS,OfferSide.ASK, appliedPrice, 20, 2,30,5);
// Bande de Bollinger
MaType maType = MaType.SMA;
double BB[] = indicators.bbands(instrument, Period.FOUR_HOURS, OfferSide.ASK, appliedPrice, 20, 2, 2, maType, 1);
(sorry for my bad english, i speak french)
but, when i check the vallue of de BB[1] , its give me a value of Bollinger Bands with a timeperiod 6 or 7 (but not the data of a bbands with timeperiod of 20 lol)
i manually adds bbands indicators on the chart(Four Hours) with the setting 20,2,2,1 with MaType SMA and i really dont have the same value
i check the value of BB[1] with that :
for (IChart chart : this.context.getCharts(instrument)) {
chart.setCommentFont(font);
chart.setCommentColor(Color.GRAY);
chart.comment("Bande de Bollinger : " + BB[1]);
}
i try with indicators.sma(...) and i have a the same problem with the data
* I have the right data for the Kama