Platform 2.30.3
API 2.9.5.2
Platform stops a strategy regardless the 'Stop strategies on exception' option.
package jforex;
import com.dukascopy.api.*;
public class JFTestException implements IStrategy {
private IContext context;
public void onStart(IContext context) throws JFException {
this.context = context;
throw new JFException("jfxex");
}
public void onTick(Instrument instrument, ITick tick) throws JFException {}
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {}
public void onAccount(IAccount account) throws JFException {}
public void onMessage(IMessage message) throws JFException {}
public void onStop() throws JFException {
context.getConsole().getOut().println("test end");
}
}