Yup, I managed to get it to work. Just had to include a line inside OnStart():
//declared at the top
public IIndicators indicators = null;
public void onStart(IContext context) throws JFException {
...
this.indicators = context.getIndicators();
...
...
}
public void onTick(Instrument instrument, ITick tick) throws JFException { // or wherever else
...
double smaresult = indicators.ma(instrument, Period.FIFTEEN_MINS , OfferSide.BID, IIndicators.AppliedPrice.MEDIAN_PRICE, 10, IIndicators.MaType.SMA, 0);
...
}