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.

no way to get the actual Instrument in an IIndicator
 Post subject: no way to get the actual Instrument in an IIndicator Post rating: 0   New post Posted: Mon 26 Jul, 2010, 13:36 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
If there is an IIndicator running in an IChart. The IIndicator itself has no way to get this actual used IChart nor the actual used Instrument. I need this possibility for my indicator programms. Please implement this.


 
 Post subject: Re: no way to get the actual Instrument in an IIndicator Post rating: 0   New post Posted: Fri 20 Aug, 2010, 08:54 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Please use IIndicatorContext.getInstrument() method to obtain the indicator instrument. You can't get access to the IChart object but you can implement the IDrawingIndicator interface and draw output.


 

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