See below...
package jforex;
import java.util.*;
import com.dukascopy.api.*;
public class TestIndicators implements IStrategy {
private IContext context = null;
private IEngine engine = null;
private IChart chart = null;
private IIndicators indicators = null;
private IHistory history = null;
int calcWindowMs = 60000;
public void onStart(IContext context) throws JFException {
this.context = context;
engine = context.getEngine();
indicators = context.getIndicators();
history = context.getHistory();
}
public void onAccount(IAccount account) throws JFException {
}
public void onMessage(IMessage message) throws JFException {
}
public void onStop() throws JFException {
}
public void onTick(Instrument instrument, ITick tick) throws JFException {
double[] t3 = indicators.t3(instrument, Period.TICK, OfferSide.ASK, IIndicators.AppliedPrice.CLOSE, 20, 0.95, tick.getTime()-calcWindowMs, tick.getTime());
}
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
}
}