Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Different close price in historical bars on same bar
 Post subject: Different close price in historical bars on same bar Post rating: 0   New post Posted: Tue 10 Apr, 2018, 14:31 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
Depends on backtest start date, getBars() returns different close price on same bar, tested on EURUSD, java attached.

How to reproduce:
1) Start backtest from 29.11.2016, close price is 1.06182 on bar 28.11.2016 23:59
2) Start backtest from 30.11.2016, close price is 1.06189 on bar 28.11.2016 23:59

You can see difference on close price on same bar:
Image


Attachments:
DifferentBarPrice.png [5.97 KiB]
Downloaded 313 times
DifferentBarPrice.java [1.58 KiB]
Downloaded 164 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Different close price in historical bars on same bar Post rating: 0   New post Posted: Wed 11 Apr, 2018, 12:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We cannot reproduce issue:

Image

Check please again, maybe you use some specific parameters?


Attachments:
differentPriceBar.JPG [24.08 KiB]
Downloaded 315 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Different close price in historical bars on same bar Post rating: 0   New post Posted: Fri 13 Apr, 2018, 09:33 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
I see error in your parameters, you use year 2017, please use 2016.


 
 Post subject: Re: Different close price in historical bars on same bar Post rating: 0   New post Posted: Mon 14 May, 2018, 17:56 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Thanks for the feedback. Issue will be fixed in next release.


 

Jump to:  

  © 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