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.

Difference in result when back-testing with 1min vs ticks
 Post subject: Difference in result when back-testing with 1min vs ticks Post rating: 0   New post Posted: Wed 25 Apr, 2018, 09:29 

User rating: 0
Joined: Fri 17 May, 2013, 06:58
Posts: 76
Location: SwedenSweden
https://www.dukascopy.com/swiss/english ... 00&t=56436


 
 Post subject: Re: Difference in result when back-testing with 1min vs ticks Post rating: 0   New post Posted: Wed 25 Apr, 2018, 15:12 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please, provide strategy example


 
 Post subject: Re: Difference in result when back-testing with 1min vs ticks Post rating: 0   New post Posted: Thu 26 Apr, 2018, 07:58 

User rating: 0
Joined: Fri 17 May, 2013, 06:58
Posts: 76
Location: SwedenSweden
Back test based on EUR/SEK, previous week.

Partial strategy that only works with 1h bars and only places long orders with PLACE_BID.
Different fill prices depending on if I run the strategy with 1min bars or with ticks.


1min ask bars output:

2018-04-22 23:30:37 Order filled @ 10.37889, bid was placed @ 10.37944
2018-04-20 08:07:37 Order filled @ 10.37644, bid was placed @ 10.37787
2018-04-19 10:01:37 Order filled @ 10.36809, bid was placed @ 10.36852
2018-04-19 09:05:37 Order filled @ 10.3713, bid was placed @ 10.37307
2018-04-19 04:48:37 Order filled @ 10.395, bid was placed @ 10.39519
2018-04-18 14:01:37 Order filled @ 10.38253, bid was placed @ 10.38316
2018-04-18 13:37:37 Order filled @ 10.38408, bid was placed @ 10.3865
2018-04-17 04:28:37 Order filled @ 10.41172, bid was placed @ 10.41191
2018-04-16 08:00:37 Order filled @ 10.41243, bid was placed @ 10.41248
2018-04-16 07:05:37 Order filled @ 10.42105, bid was placed @ 10.42507

Ticks output:

2018-04-22 23:30:57 Order filled @ 10.37927, bid was placed @ 10.37944
2018-04-20 08:07:29 Order filled @ 10.3778, bid was placed @ 10.37787
2018-04-19 10:01:20 Order filled @ 10.3685, bid was placed @ 10.36852
2018-04-19 09:05:31 Order filled @ 10.37304, bid was placed @ 10.37307
2018-04-19 04:48:34 Order filled @ 10.39518, bid was placed @ 10.39519
2018-04-18 14:01:33 Order filled @ 10.38314, bid was placed @ 10.38316
2018-04-18 13:37:31 Order filled @ 10.38644, bid was placed @ 10.3865
2018-04-17 04:28:47 Order filled @ 10.41172, bid was placed @ 10.41191
2018-04-16 08:00:21 Order filled @ 10.41247, bid was placed @ 10.41248
2018-04-16 07:05:47 Order filled @ 10.4249, bid was placed @ 10.42507

Am I doing something wrong? I would assume to get the same fill price when back testing with both 1min bars and ticks...


Attachments:
FooStrategy.java [3.62 KiB]
Downloaded 153 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: Difference in result when back-testing with 1min vs ticks Post rating: 0   New post Posted: Mon 07 May, 2018, 07:53 

User rating: 0
Joined: Fri 17 May, 2013, 06:58
Posts: 76
Location: SwedenSweden
The same applies to the close price which results in that I can not trust the result of back testing with jforex... =(

Please provide feedback. Am I doing something wrong, or is this a bug in the platform?


 
 Post subject: Re: Difference in result when back-testing with 1min vs ticks Post rating: 0   New post Posted: Tue 08 May, 2018, 17:01 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Thanks for your report. We are currently working on question.


 
 Post subject: Re: Difference in result when back-testing with 1min vs ticks Post rating: 0   New post Posted: Thu 10 May, 2018, 13:05 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
For ticks time frame Historical Tester process all available ticks, for 1min HT uses interpolation methods, which generate ticks from candles relying on own logic. More you can read there:
https://www.dukascopy.com/wiki/en/forex-cfds/jforex/historical-tester#interpolation-methods

For high precision you need to use ticks time frame, interpolation methods gives a advantage in speed, but they aren't very good for testing strategies with a high dependence of price.


 

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