You can do it in both ways, here is more information about indicator calculation in your strategy:
https://www.dukascopy.com/wiki/en/development/strategy-api/indicators/indicator-calculationSMA named method:
double smaNaming = indicators.sma(
Instrument.EURUSD,
Period.TEN_MINS,
OfferSide.BID,
IIndicators.AppliedPrice.CLOSE,
14,
0
);
SMA with universal calculation method:
Object[] smaUniversal = indicators.calculateIndicator(
Instrument.EURUSD,
Period.TEN_MINS,
new OfferSide[] {OfferSide.BID},
null,
"SMA",
new IIndicators.AppliedPrice[] {IIndicators.AppliedPrice.CLOSE},
new Object[] {14},
0
);