Dukascopy
 
 
Wiki JStore Search Login

A strange difference between the live and historical test?
 Post subject: A strange difference between the live and historical test? Post rating: 0   New post Posted: Fri 27 Apr, 2018, 03:26 

User rating: 0
Joined: Tue 09 May, 2017, 23:05
Posts: 14
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.


 
 Post subject: Re: A strange difference between the live and historical test? Post rating: 0   New post Posted: Sun 29 Apr, 2018, 04:23 

User rating: 0
Joined: Tue 09 May, 2017, 23:05
Posts: 14
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


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com