Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3479 Select chart object through API?
 Post subject: JFOREX-3479 Select chart object through API? Post rating: 0   New post Posted: Wed 25 Jan, 2012, 18:39 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Is it somehow possible to select a drawing object on a chart through the API?


 
 Post subject: Re: Select chart object through API? Post rating: 0   New post Posted: Thu 26 Jan, 2012, 09:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
please elaborate


 
 Post subject: Re: Select chart object through API? Post rating: 0   New post Posted: Thu 26 Jan, 2012, 19:48 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
We are working on a strategy that runs automatically but should allow interaction in the trade management.
The strategy will draw several lines on the chart that the user might move in a certain range.
We intend to list all chart objects that the user is allowed to modify in a JTable object on a bottomTab.
We would like to select the corresponding line on the chart when the user selects a row in that JTable.
Best would be to have the same functionality available through the API that you use on doubleclicking a chart object that is listed in the workspace charts tree. Something like
IChart.select(String key)

Thanks a lot for considering!

Best regards,
RR.


 
 Post subject: Re: Select chart object through API? Post rating: 0   New post Posted: Fri 27 Jan, 2012, 08:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can not make the object appear as selected from your strategy, the most you can do is change its style on certain events and apply certain logic on object's selection by user, see:
https://www.dukascopy.com/wiki/#Handle_c ... ect_events


 
 Post subject: Re: Select chart object through API? Post rating: 0   New post Posted: Fri 27 Jan, 2012, 18:48 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Yes, we are aware of the possibility to work with object styles/properties and will do so.

Still, could you please add a select-functionality to the list feature-requests?

Thanks & best,
RR.


 
 Post subject: Re: JFOREX-3479 Select chart object through API? Post rating: 0   New post Posted: Wed 16 May, 2012, 09:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
New methods are added.

void selectDrawing(String key);
void selectDrawing(IChartObject chartObject);
void navigateAndSelectDrawing(String key);
void navigateAndSelectDrawing(IChartObject chartObject);


 

Jump to:  

cron
  © 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