Just after updating JForex from 2.28.4 to 2.28.5 the IContext.setSubscribedInstruments method (see:
https://www.dukascopy.com/client/javadoc/com/dukascopy/api/IContext.html#setSubscribedInstruments(java.util.Set,%20boolean)) works wrong in Historical Tester.
While running the attached code one can expect successful USDJPY subscribing. But this is no case.
package jforex;
import com.dukascopy.api.*;
import java.util.EnumSet;
public class JFSubscribingInHistoricalTester implements IStrategy {
public void onStart(IContext context) throws JFException {
context.setSubscribedInstruments(EnumSet.of(Instrument.USDJPY), true);
context.getConsole().getOut().println(context.getSubscribedInstruments());
context.stop();
}
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 {}
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {}
}