Hi,
I have a piece of code that calculates 5-minute BBands in onTick():
@Override
public void onTick(Instrument instrument, ITick tick) throws JFException {
...
double[] indBB = indicators.bbands(instrument, Period.FIVE_MINS, OfferSide.BID, AppliedPrice.CLOSE, 800, 2, 2, IIndicators.MaType.EMA, 0);
...
}
However, as I'm printing out the BBands levels, these values are drastically different from the JForex chart with BBands (800,2,2,EMA) drawn on the 5 minute chart. It's almost like I'm looking at entirely different indicators. Any hints on why this is?
Thanks