Hello Support,
I noticed disturbing thing. I tested my strategy (which logic bases on tick data), and I received different results on historical tester and in real time.
I checked this, and I see that sometimes tick data on historical tester (and on the platform in history charts) are different than tick data at the same time in real time.
I coded simple strategy which print always first tick form Ten seconds Bar.
I use such code (in attachment full strategy file):
SimpleDateFormat formatSSS = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss:SSS");
@Configurable("Instrument:") public Instrument instrumentThis = Instrument.EURUSD;
@Configurable("Period:") public Period periodThis = Period.TEN_SECS;
IBar lastBar0 = null;
public void onTick(Instrument instrument, ITick tick) throws JFException {
if(instrument != instrumentThis) return;
try{
IBar bar0 = history.getBar(instrumentThis, periodThis, OfferSide.BID, 0);
if(lastBar0!=null && bar0.getTime()!=lastBar0.getTime()){
console.getOut().println(formatSSS.format(tick.getTime())+": new Bar, volume = "+bar0.getVolume()+", tick Ask: "+tick.getAsk()+", Bid: "+tick.getBid()+", BidVolume: "+tick.getBidVolume()+", AskVolume: "+tick.getAskVolume());
}
lastBar0 = bar0;
}catch (JFException jfe){
jfe.printStackTrace(console.getErr());
}catch (Exception e){
e.printStackTrace(console.getErr());
}
}
I run this strategy in real time and then on the same period in historical tester. And I receive two different results. Files with results in attachment.
Here you can see compare of this two files:

It happen not only on my platform because in my friend it happened the same.
Please check this and explain this.