IBar liveBar = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.BID, 0);
IBar previousBar = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.BID, 1);
result = previousBar .getClose() - liveBar .getOpen();
On live, result was 4 pips but on historical test, result was 0 pips.(correct one)
How can this be possible? Is Dukascopy fixing bar closing price later? Because there was 4 pips difference just 30 seconds before the bar closes.
It was demo acc. by the way.