Hi,
Something like this:
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
double[][] hAshi = indicators.heikinAshi(instrument, Period.DAILY, OfferSide.BID, Filter.NO_FILTER, 1, bidBar.getTime(), 0);
}
The array will contain 4 values:
hAshi[0][0]: Open
hAshi[0][1]: Close
hAshi[0][2]: High
hAshi[0][3]: Low
The difference between heikinAshi and heikinAshiSingle is that the latter returning an IBar, instead of a double array with the OHLC data of a particular bar.