Dukascopy
 
 
Wiki JStore Search Login

Renko bars and historical tester
 Post subject: Renko bars and historical tester Post rating: 0   New post Posted: Wed 01 Jan, 2014, 13:43 

User rating: 1
Joined: Sun 20 May, 2012, 09:29
Posts: 22
Location: Czech Republic, programmer
Linux
java version "1.7.0_45"
JForex 2.30.1
JForex API 2.9.5.1


Renko bars (in this case 15 pips [7]) wrongly drawn on chart while tester is running.
If I chose different period let's say 3 pips [7] and return back 15 pips [7] period then bars redrawn correctly.

Please, see pictures below.

Image
Image


Attachments:
renko-tester.png [44.1 KiB]
Downloaded 751 times
renko-demo.png [39.01 KiB]
Downloaded 751 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: Renko bars and historical tester Post rating: 0   New post Posted: Sun 05 Jan, 2014, 15:47 

User rating: 1
Joined: Sun 20 May, 2012, 09:29
Posts: 22
Location: Czech Republic, programmer
Same problem with RangeBar.
So, historical tester is not possible to use with Renko and Range bars.


 
 Post subject: Re: Renko bars and historical tester Post rating: 0   New post Posted: Mon 13 Jan, 2014, 17:47 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Will investigate this


 
 Post subject: Re: Renko bars and historical tester Post rating: 0   New post Posted: Tue 14 Jan, 2014, 18:56 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Please also consider
[*] viewtopic.php?f=85&t=50499
[*] viewtopic.php?f=85&t=50462

Please fix this as soon as possible. Developers and customers are "in the air"!


 
 Post subject: Re: Renko bars and historical tester Post rating: 0   New post Posted: Fri 17 Jan, 2014, 10:23 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Visualization on Historical Tester when the periods are changed on chart is fixed. Will be released soon. It is important to understand, that the test is actually performed only on the periods chosen in the main HT panel, i.e. Ticks, 1 Minute, 1 Hour, 1 Day. The most precise is All ticks, but the rest are iterpolated. The period chosen in Custom settings is purely for visual purposes.

Price based periods are calculated on interpolated 1 Minute or 1 Hour candles using Cubic spline method at the moment. At the times of high volatility cubic spline method returns the roller-coaster swings which cannot be avoided. I am afraid none of the interpolation methods is perfect and we will have to deal with such results until we calculate the price based periods completely from the real ticks.


 
 Post subject: Re: Renko bars and historical tester Post rating: 0   New post Posted: Fri 24 Jan, 2014, 12:18 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Problem rectified in version 2.31.1 and released on DEMO.


 
 Post subject: Re: Renko bars and historical tester Post rating: 0   New post Posted: Fri 24 Jan, 2014, 20:37 

User rating: 1
Joined: Sun 20 May, 2012, 09:29
Posts: 22
Location: Czech Republic, programmer
Platform Support wrote:
Problem rectified in version 2.31.1 and released on DEMO.

Thank you for information. But the version did not solve the problem.
Please, see attached image.
I run strategy mentioned by "API Support" in this https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=50640 topic.

Image

Please, can you verify this?


Attachments:
renko-test.png [110.3 KiB]
Downloaded 696 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: Renko bars and historical tester Post rating: 0   New post Posted: Mon 27 Jan, 2014, 11:14 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
Dear Dukascopy, I assume it is caused by what I write in thread "Renko bars see future in historical tester"
Bar in HT is posted to strategy (and to chart here) in advance and not correspond with actual tick.


 
 Post subject: Re: Renko bars and historical tester Post rating: 0   New post Posted: Wed 29 Jan, 2014, 19:03 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
"Visualization on Historical Tester when the periods are changed on chart is fixed."
What was meant here was switching the Visual HT Chart from Renko to something else and back. It is fixed indeed as the renko is not being changed. It is being drawn on the same HT data.

The real price based charts are calculated from ticks or the interpolated 1 Minute or 1 Hour candles using Cubic spline method.
// if (pipsCount <= 2) {
// return Period.TICK;
// }
// else if (pipsCount <= 10) {
// return Period.ONE_MIN;
// }
// else {
// return Period.ONE_HOUR;
// }
The historical tester in the sample above was run on All ticks, so price based chart (Renko here) in HT Visual mode was actually built on ticks, not interpolated 1 Hour candles (because of Renko 15 pips chosen). Hence the difference between both of them. In fact, the HT chart was calculated using the most precise method possible, so it was more precise.

The bars in the strategy log coincide with the HT Visual mode chart. So there is no problem here.

The real charts will look the same only when we start calculating them from the ticks as well or if you run the Historical Test on the interpolated 1 Hour Bid candles using Cubic spline. I have attached the picture where all 3 candles are compared after such a test. Black is the HT chart. They match perfectly.
Image


Attachments:
RenkoComparison.png [110.93 KiB]
Downloaded 499 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.
 

Jump to:  

  © 1998-2025 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