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

Range Bars chart/data integrity
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=49756
Page 1 of 1

Author:  DmitryShelya [ Wed 07 Aug, 2013, 09:03 ]
Post subject:  Range Bars chart/data integrity

Hi JForex team,

JFOREX 2.25.7 on API 2.7.10 on a LIVE account.

I faced with a difference between online Range Bars (RB) chart and drawn by the history.
The difference actually in "Close - Open" pairs of consecutive bars where values are being changed after the platform restarts. It is probably caused by gaps that are not identical and increased after restart.

The only way to keep the bars up to date is to restart the platform as the API doesn't have a method to repaint bars "On Fly".

The same issue appears in the Tester mode, however there is a way to actualize bars - do switching between Ask and Bid presentation of a chart and all the bars will correctly repaint :)
But the above solution doesn't take place on live.

Here are results of my small investigation:
Image

Bars "close-open" data before restart:
Bar #1 O: 1.53477 C: -
Bar #2 O: 1.53397 C: 1.53476
Bar #3 O: 1.53330 C: 1.53393
Bar #4 O: 1.53315 C: 1.53329
Bar #5 O: 1.53283 C: 1.53314

Bars after restart:
Bar #1 O: 1.53507 C: -
Bar #2 O: 1.53427 C: 1.53476
Bar #3 O: 1.53335 C: 1.53393
Bar #4 O: 1.53315 C: 1.53329
Bar #5 O: 1.53283 C: 1.53314

As you can see there were gaps before restart but they are swollen and the bars configuration have been changed.
Another problem - indicators that are drawn based on the bars, the data presented by them has been changed as well.

I'm not sure if this a bug, but if it's a normal flow,
could you please advice if there is a workaround to keep the data in actual state without the platform restart.

Thank you in advance,
Dmitry

Attachments:
File comment: chart with 2 both-shadowed bars
Range Bars with 2 shadows.png [13.14 KiB]
Downloaded 937 times
File comment: 2 last bars before and after restart
chart.png [41.33 KiB]
Downloaded 926 times

Author:  DmitryShelya [ Fri 16 Aug, 2013, 08:29 ]
Post subject:  Re: Range Bars chart/data integrity

UPDATE. 16/08/2013

Hi Again,

JFOREX and API version just has changed to
JFOREX 2.26.5 on API 2.9.0.1
Range Bars: 6 pts.

I was really surprised when the chart displayed a bar with 2 shadows on both sides of the bar like time-based chart.
You can simply find these bars 14.08.2013 at 16:36 GMT.
Find below attached screnshot.
Image

Author:  DmitryShelya [ Fri 16 Aug, 2013, 16:19 ]
Post subject:  Re: [UPDATED. 2]. Range Bars chart/data integrity

Hi JFOREX Team,

I've faced with another issue.
A new RB disappears from a chart after refresh for a time and appears again as a new bar.
I noticed that It usually happens if the new bar goes in opposite direction to pervious one.

Please look at the attached screenshot:
1. 1st image was taken right after a new bar had shown. Time: 13:50:22 GMT
2. 2nd image: I did refresh the chart and the latest bar disappeared. Time: 13:50:53 GMT
3. 3rd image: After 1 minute the bar appeared again however its open price a bit changed. Time: 13:51:54

Image

I hope it helps you.
As the Range bars is nice and powerful instrument it would be great if the above were fixed.

Thanks.

Attachments:
disappearance.png [64.51 KiB]
Downloaded 920 times

Author:  DmitryShelya [ Sun 10 Nov, 2013, 14:01 ]
Post subject:  Re: Range Bars chart/data integrity

Hi again,
is there any info?

Author:  Platform Support [ Thu 14 Nov, 2013, 17:17 ]
Post subject:  Re: Range Bars chart/data integrity

There is a new version 2.29.1 out on DEMO. There are a couple of things solved on the price based period side. The base period can be changed now as well. It used to be 7 days by default. Will be shown in [] brackets now on.
The incomplete candle used to be taken into account in the next base period. It would not be anymore.
The Renko and Range bar units max limit has been increased to 1000 now.

  Page 1 of 1