Hi,
I would like to report an issue with different outputs of the same code. One output generated running a strategy locally the other running the strategy remotely.
It can be reproduced using following code. Please run it locally and remotely and you will get two different results. It will return "true" when run locally, and "false" when run remotely.
public class StrategyRemoteModeIssue implements IStrategy,IFeedListener {
private IEngine engine;
private IConsole console;
@Configurable(value = "Feed", description = "", obligatory = true)
public IFeedDescriptor feed = new RenkoFeedDescriptor(
Instrument.EURUSD,
PriceRange.ONE_PIP,
OfferSide.ASK
);
public void onStart(IContext context) throws JFException {
engine = context.getEngine();
console = context.getConsole();
context.setSubscribedInstruments(Collections.singleton(feed.getInstrument()), true);
context.subscribeToFeed(feed, this);
}
@Override
public void onFeedData(IFeedDescriptor feed, ITimedData data) {
console.getOut().println(engine.getRunMode() + " | " + this.feed.equals(feed));
}
Best regards,
Greg