Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

A strange difference between the live and historical test?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=200&t=56468
Page 1 of 1

Author:  NonikNone [ Fri 27 Apr, 2018, 03:26 ]
Post subject:  A strange difference between the live and historical test?

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.

Author:  NonikNone [ Sun 29 Apr, 2018, 04:23 ]
Post subject:  Re: A strange difference between the live and historical test?

I found some explanations.
https://www.dukascopy.com/wiki/en/devel ... rical-data
https://www.dukascopy.com/client/javado ... .Type.html
https://www.definition.net/define/historical-data

  Page 1 of 1