I've noticed that the object of a strategy isn't being destroyed after local running strategy stops.
If this strategy local runs again the platform (DEMO 2.29.1) re-uses the object of a strategy.
Question to the Support Team:
if this is a bug, please fix it;
if this is a feature for performance purpose, please document it.
Thanks in advance.
package jforex;
import com.dukascopy.api.*;
public class TestStrategyObject implements IStrategy {
public void onStart(IContext context) throws JFException {
context.getConsole().getOut().println(this.hashCode());
context.stop();
}
public void onTick(Instrument instrument, ITick tick) throws JFException {}
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {}
public void onMessage(IMessage message) throws JFException {}
public void onAccount(IAccount account) throws JFException {}
public void onStop() throws JFException {}
}