Dukascopy
 
 
Wiki JStore Search Login

Bad data in Renko feed
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Sun 07 Sep, 2014, 13:44 

User rating: 0
Joined: Mon 31 Mar, 2014, 16:50
Posts: 21
Location: Italy, San Severino Marche MC
again nothing news?


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Fri 12 Sep, 2014, 17:16 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1045
Location: Geneva, Switzerland
We have been busy with CFD launching lately. New renko system is coming soon.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 17 Sep, 2014, 16:58 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Hi Guys

I realise that you've got a lot on your roadmap right now, but in April you said that we could expect a fix pretty soon, and now it's mid-Sept. It's well over 6 months since this bug was raised.

I have a bot design that's working on paper, but I need access to a couple of Indicators in the Stragety. It's pretty easy to re-implement Renko in my own code, but I really would prefer not to have to re-implement the indicators too.

So it would be VERY much appreciated if you could get this into JForex 2. Given that you seem to have working code, would this be a big job?


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Thu 18 Sep, 2014, 15:21 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1045
Location: Geneva, Switzerland
scotpip wrote:
Given that you seem to have working code, would this be a big job?


It is.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Thu 18 Sep, 2014, 15:39 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Bad news :cry:

Do you have any idea of a release date for 4? Are we talking weeks, months, or unknown??

Geoff


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Tue 23 Sep, 2014, 20:51 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
By the way, for anyone following this I've found a half-decent workaround for getting accurate data on new Renko bars without having to analyse every tick to make my own (this could get processor intensive when following lots of instruments in lots of price ranges).

1) Set up a Renko feed.
2) When onFeedData is notified of the new bar, ignore the bad data in the feedData param.
3) In onFeedData, use history.getRenkoBar() to get correct data on the latest bar.

IBar bar = history.getRenkoBar(Instrument.EURUSD, OfferSide.BID, PriceRange.ONE_PIP, 0);


Execution time for the call to history is acceptable for my purposes, so this should work OK for me. You'd better check this for your own scenario.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 24 Sep, 2014, 13:15 

User rating: 0
Joined: Fri 04 Apr, 2014, 16:35
Posts: 50
Location: Monaco, Monte-Carlo
Scotpip,
You are correct in way, I have been doing the same thing myself but there is a bug with that as well. I do not have my code to hand so I cannot show you my work around but basically there is an error when there is a reversal:

E.g. on an UP, UP, DOWN brick formation, you will be able to see if you create some variables for the open, high, low and close prices for all three bricks, that the second UP brick (i.e. the high) will have open price==lowprice==close price where all three are less than high price once the down brick has formed, it seems that they link the close price to the open price of the next brick which is, even for renko, incorrect. It is of course the opposite for a DOWN, DOWN, UP formation.

I had to create a work around to properly assign the closing prices of each brick: e.g.

if(open price==low price && low price==close price && open price < high price) close price = high price;

I'm still working on my own work around for creating an array based on corrected close prices so that I can try and get the indicators to work off the array rather than the price feed. If I get it to work I will post it.

Once again I'd like to thank you on voicing your frustration that this matter has been dragging on for so long, it's a feeling I share. It does seem, despite everyone's best efforts in this forum to raise the awareness of this issue, that the team behind the product aren't interested in fixing their mistake with much haste and would apparently rather focus on new releases. I have even called several members at Dukascopy about this and keep getting pointless responses. I sit and wait....


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 24 Sep, 2014, 14:16 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
James - thanks for the heads-up. I had only given the history data a quick check and it looked OK. I'm into heavier testing now, so will look at this carefully.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 24 Sep, 2014, 14:22 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
I'd be very grateful if you find a way to get the indicators to work.

At present I'm working on a strategy that uses a custom Renko based indicator in the background, but that trades off the candle chart so I get working indicators. I'd much rather be working with Renko end-to-end though...

I'm so frustrated with this that I've investigated other brokers and platforms, but the Dukas offering is hard to beat. I just wish they'd focus more on getting things to work reliably rather than on producing new shiny things :evil:


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 24 Sep, 2014, 15:01 

User rating: 0
Joined: Fri 04 Apr, 2014, 16:35
Posts: 50
Location: Monaco, Monte-Carlo
Couldn't agree more.

I'd MUCH rather have a platform that works 100% where I can fully rely on the data that is being given to me than being able to choose between a million different colours for my moving averages, but as you said it's hard to beat Duka right now. Just seems that the developers have forgotten that you can't build a mansion on sand foundations.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Fri 26 Sep, 2014, 16:26 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1045
Location: Geneva, Switzerland
I can only agree on this.
However it is not the shiny look or million of collors which have stolen our time, but adding new instruments. CFD are available on LIVE now and we can get back to were we stopped.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Fri 26 Sep, 2014, 21:33 

User rating: 0
Joined: Fri 04 Apr, 2014, 16:35
Posts: 50
Location: Monaco, Monte-Carlo
Well that at least sounds promising!

Scotpip:
As per my previous message about correctly deriving the closing prices of bricks, I have found a more reliable way of doing it since the first way I suggested still on occasions wouldn't work as expected. I changed my technique to compare the high and low price of one brick to the previous brick and therefore derive the prices (since it only ever seemed that the high and low prices were completely reliable, the open and close prices would often change as I previously said). E.g.

if(current low==previous high && current high>previous high){
current close=current high
current open=current low
} else if (current high==previous low && current low<previous low){
current close=current low
current open = current high
}

Hope that helps.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Sat 27 Sep, 2014, 16:18 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Hi James

Your code looked familiar, and I realised I'm already doing something similar when I'm building my history cache on launch. It's not code I'd touched for a bit and I'd simply forgotten about the bug! Thanks for the reminder.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Tue 11 Nov, 2014, 19:20 
User avatar

User rating: 0
Joined: Wed 05 Nov, 2014, 10:56
Posts: 23
Location: LatviaLatvia
Hello!
Are there any news regarding renko charts? The open and close prices are still messed up and doesn't make any sense both in real time and historical tester!
This is quite an issue in my opinion!


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Thu 20 Nov, 2014, 18:03 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1045
Location: Geneva, Switzerland
We plan to release the new version next week.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Tue 25 Nov, 2014, 12:16 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Hi

Great that this issue is finally being addressed!

I'll be checking the feed later today, but it's immediately obvious that there's a pretty major bug with the charting - it simply isn't updating as the price moves into the zone that should trigger a new bar. I've enclosed a screenshot that illustrates the issue.

Image


Attachments:
RenkoChartBug.png [7.95 KiB]
Downloaded 443 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: Bad data in Renko feed Post rating: 0   New post Posted: Wed 26 Nov, 2014, 12:13 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1045
Location: Geneva, Switzerland
Version 2.42.2 is out on DEMO.

More info on Renko is available here: https://www.dukascopy.com/wiki/#Charts_widget under Renko tab.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 26 Nov, 2014, 13:38 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Thanks for the update. Great that we are finally close to a working Renko implementation!

The new system looks pretty flexible and a quick check suggests that it is working OK, apart from the Renko wicks issue which you are already aware of.

But I feel that you might want to consider the defaults, as I don't think I'll be the only user who finds them confusing.

To have a very fast default Renko period of 1 pip and a very slow Session Length of 1 minute leads to odd looking behavior in a fast-moving chart, with large price movements being ignored. When I saw this, I simply assumed it was a bug.

My suggestion would be that you either increase the default period or reduce the default Session Length so they are in better balance.


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 26 Nov, 2014, 14:13 

User rating: 0
Joined: Fri 04 Apr, 2014, 16:35
Posts: 50
Location: Monaco, Monte-Carlo
I'm not sure what has been changed in the way the graphs are calculated but this latest release no longer matches up against my previous copies of charts that I make every day for historical reference (in terms of the actual brick pattern). Is it defaulting to calculating bricks on 1 minute data as opposed to ticks?

I have looked for the preferences page as shown in the link above from API support but I can't find it anywhere in the latest build.

It seems to be a screen shot from the settings page of JForex4 not JForex2..


 
 Post subject: Re: Bad data in Renko feed Post rating: 0   New post Posted: Wed 26 Nov, 2014, 14:33 

User rating: 2
Joined: Thu 07 Nov, 2013, 12:15
Posts: 121
Just checked the Renko wick feature on the charts, and it seems to be bugged.

For long bars, you can only get a wick on the short (open) end, and vice-versa for short bars.

So the wicks are running in the wrong direction!

Here is a shot of the current JForex demo release:

Image

And here is a shot of a correct implementation from Sierra:


Image


 

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