I would like to use an indicator to get values for multiple candles so I tried using this
Object[] outputs = indicators.calculateIndicator(instrument,
period,
mOfferSide,
indicatorName,
null,//mAppliedPrice,
mInputParams,
Filter.NO_FILTER,
1,
askBar.getTime(),
0);
My understanding is that I should get an array of two elements (indicator values for the last 2 candles), each element an array of values returned by the indicator (here I am using ichimoku, so there are 5 values)
The documentation says the object returned is an array of arrays. How do I access it ?
I tried this:
Object[]first = outputs[0];
Object[]second = outputs[1];
then I would access each object elements. but I get a compilation error
Type mismatch, cannot convert from Object to Object[]
How can I access the returned data ?