Hello, i try get indicator data but get exception on 3tick chart. In strategy tester it works, but doesnt work in real mode.
public Instrument instrument = Instrument.DEUIDXEUR;
public OfferSide side = OfferSide.BID;
public IFeedDescriptor tickFeed = new TickBarFeedDescriptor(instrument, TickBarSize.THREE, side);
@Override
public void onTick(Instrument instrument, ITick tick) throws JFException {
if (instrument != this.instrument) {
return;
}
double tsf1 = indicators.tsf(tickFeed, appliedPrice, side, 100).calculate(1);
console.getOut().println(String.format("tsf[100][%.5f];", tsf1));
}
I got this error when ticks are null: 16:12:14 java.lang.ArrayIndexOutOfBoundsException: -1 @ Strategy...
ps: also i got NaN results sometime, is it normal?