Dukascopy
 
 
Wiki JStore Search Login

IOhlcChartObject object acts strange.
 Post subject: IOhlcChartObject object acts strange. Post rating: 0   New post Posted: Wed 10 Jul, 2013, 00:49 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Dear Support,

Please take a look on the attached strategy. It is a combination of the wiki examples of IOhlcChartObject and IChartPanelMouseListener.

The strategy will put on the EURUSD chart an OHLC widget whenever the user clicks with the mouse on the chart.

The problem happens when you click on a future date in the chart. I made some screenshot, I hope the problem is clear from them.
Image


Attachments:
File comment: screenshot taken when the user click in the last candle
good.png [42.1 KiB]
Downloaded 618 times
File comment: strategy that dupliate the issue
MouseListenerStrat.java [4.89 KiB]
Downloaded 360 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: IOhlcChartObject object acts strange. Post rating: 0   New post Posted: Wed 10 Jul, 2013, 00:51 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
I continued in a reply as upload limit reached in the initial post.

The oversized widget `turns` normal whenever the mouse hoover over of a bar. Or with other words, whenever the user moves the mouse in the chart to a place where there are candles present, the widget is being resized to the normal size and the userMessage become visible.

Image


Attachments:
File comment: screenshot taken when the user click on a future date on the chart
bad.png [44.72 KiB]
Downloaded 620 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: IOhlcChartObject object acts strange. Post rating: 0   New post Posted: Wed 17 Jul, 2013, 23:11 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Dear Support,

May I have an update on this issue, please?
Were you able to replicate it?
Are you planning to fix it in the next API release?

And at last, but not least:
Does the ICustomWidgetChartObject class have the same issue, or as it is not 'bind' to price data, it is drawn properly? (I cannot test it myself as the DEMO platform is now again on API-2.7.10 :( ).


 
 Post subject: Re: IOhlcChartObject object acts strange. Post rating: 0   New post Posted: Mon 22 Jul, 2013, 15:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please do await the release of JForex-API 2.8.0 in platform and use the chart widget object for similar purpose.


 

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