Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Graphical object data access
 Post subject: Graphical object data access Post rating: 0   New post Posted: Wed 19 Oct, 2011, 15:53 

User rating: 0
Joined: Wed 19 Oct, 2011, 15:33
Posts: 3
Location: US
Is it possible to have an access to the point data in the chart graph objects such as "Short Line", "Long Line", "Channel Lines", etc.? From Java, my code should be able to call to the list of graphical chart objects, get a reference to the one I want, and then request the point data (i.e time/price, or point index) of the points that were placed on the chart via mouse clicks. That way, the IBar bar or tick that is referenced by the graphics click on that particular chart can be available to my strategy for that instrument.


 
 Post subject: Re: Graphical object data access Post rating: 0   New post Posted: Wed 19 Oct, 2011, 16:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
rhotchkiss wrote:
Is it possible to have an access to the point data in the chart graph objects such as "Short Line", "Long Line", "Channel Lines", etc.?
Yes, see:
IChartObject.getPrice
and:
IChartObject.getTime
For chart object operations start here:
https://www.dukascopy.com/wiki/index.php?title=IChart
And also see the examples under the Strategy API/Charts section.
rhotchkiss wrote:
From Java, my code should be able to call to the list of graphical chart objects, get a reference to the one I want, and then request the point data (i.e time/price, or point index) of the points that were placed on the chart via mouse clicks.
Currently it is not possible to access chart mouse listener from API. It is only possible to add listener to particular strategy-created objects, as it is done in the following two examples:
https://www.dukascopy.com/wiki/index.php ... ect_events
https://www.dukascopy.com/wiki/index.php ... rt_objects


 

Jump to:  

  © 1998-2025 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