Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Renko getTime is incorrect, please fix
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=53585
Page 1 of 1

Author:  jamesadk [ Fri 22 Jan, 2016, 12:01 ]
Post subject:  Renko getTime is incorrect, please fix

Hello,
I have noticed that the time the system returns for Renko bricks is always incorrect. The system always returns the time of the previously formed brick as opposed to that of the most recent one.
I have attached working code for you to confirm this on your end.
If you check the output of the code you will see that the time the message is output (i.e. on the left hand side) does not correspond to the time returned for the time of the renko brick within the message. If you let the code run for a couple of bricks you can clearly see that the time is always for the previously formed renko brick.

Please can this be fixed.

Attachments:
RenkoTime.java [4.64 KiB]
Downloaded 188 times

Author:  jamesadk [ Wed 27 Jan, 2016, 10:32 ]
Post subject:  Re: Renko getTime is incorrect, please fix

Hi Support,

Have you been able to replicate this on your side?

Author:  jamesadk [ Tue 02 Feb, 2016, 16:18 ]
Post subject:  Re: Renko getTime is incorrect, please fix

Hi Support,

Do you have a patch for this?

Author:  API Support [ Mon 08 Feb, 2016, 16:29 ]
Post subject:  Re: Renko getTime is incorrect, please fix

There is no problem. Renko bars do not have in progress bars (with index 0). This means that onFeedData() received bar with index 1, the bar that has finished.

Author:  jamesadk [ Tue 09 Feb, 2016, 10:58 ]
Post subject:  Re: Renko getTime is incorrect, please fix

Sorry but I do not agree with this at all. I know renko bars have no in progress bar. How can the getTime() not be the same as the message posted time? Surely the getTime should be the time that the renko bar appears on screen, i.e. the same as the message posted time. The way it is at the moment getTime() returns the time for the previously formed brick. Please see the output from the code I attached in my first message below:

09:49:01 Latest Renko brick was formed at time of 2016-02-09 09:46:13:013
09:49:01 Previous Renko brick was formed at time of 2016-02-09 09:45:18:018
09:46:13 Latest Renko brick was formed at time of 2016-02-09 09:45:18:018
09:46:13 Previous Renko brick was formed at time of 2016-02-09 09:44:50:050

Please explain to me how a renko brick which appears on screen at 09:49:01 can have a getTime() of 09:46:13.

Author:  jamesadk [ Fri 04 Mar, 2016, 16:53 ]
Post subject:  Re: Renko getTime is incorrect, please fix

Hi support,

Do you have any response to the above?

Author:  API Support [ Wed 09 Mar, 2016, 14:05 ]
Post subject:  Re: Renko getTime is incorrect, please fix

There is no problem with renko bars.

  Page 1 of 1