Dukascopy
 
 
Wiki JStore Search Login

JFOREX-1647 Charts CHANNEL-object - sets and draws wrong time3
 Post subject: JFOREX-1647 Charts CHANNEL-object - sets and draws wrong time3 Post rating: 0   New post Posted: Sat 10 Apr, 2010, 22:55 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
When drawing a CHANNEL-object, time3 is set incorrect.

Example: EUR/USD
IChartObject cObj = chart.drawUnlocked("Testchannel",
IChart.Type.CHANNEL,
Wed 2009.12.30 15:47:00.000, 1.4273,
Mon 2010.01.04 01:43:00.000, 1.4257,
Thu 2009.12.31 06:51:00.000, 1.444);

cObj.getTime(2) returns Wed 1969.12.31 23:59:59.999
cObj.getTime(0) and (1) however are returned correctly.
cObj.getPrice(...) returns all prices correctly.

The channel object is drawn with datapoints 1 and 2 correct and the time of datapoint 3 at around Mon 2009.12.28 06:40:00, which is again different from cObj.getTime(2) and the time that was originally passed as time3 for the object.

Best, RR.


 
 Post subject: Re: JFOREX-1647 Charts CHANNEL-object - sets and draws wrong tim Post rating: 0   New post Posted: Mon 12 Apr, 2010, 17:20 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
jfyi - We've further investigated into this:
after drawing a CHANNEL object, it seems that getTime(2) and getPrice(2) always do return -1 and that the CHANNEL sometimes is drawn at the correct location and sometimes not.

Setting the attribute again after drawing the object through setAttrLong/setAttrDouble does change the values of time3 and price3 to the correct values, but does not update the chart with the correct position of the channel-object.

Best, RR.


 
 Post subject: Re: JFOREX-1647 Charts CHANNEL-object - sets and draws wrong tim Post rating: 0   New post Posted: Mon 12 Apr, 2010, 17:32 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
... and getPointsCount() returns 2.

this should make it really easy to detect the bug...

Would it be possible to fix this bug as soon as possible?

Thanks a lot!
Best, RR.


 

Jump to:  

  © 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