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.

Custom Indicator getLookback() access
 Post subject: Custom Indicator getLookback() access Post rating: 0   New post Posted: Thu 07 Jan, 2010, 03:17 

User rating: 0
Joined: Sat 08 Mar, 2008, 03:10
Posts: 18
I have a custom indicator I want to be able to call the getLookback() method on, but context.getIndicators().getIndicator("CustomIndicatorName").getLookback() doesn't work which is not surprising. Should we be able to do this? If so, how do we "register" the custom indicator name with the list of all indicators?

Thanks!


 
 Post subject: Re: Custom Indicator getLookback() access Post rating: 0   New post Posted: Thu 07 Jan, 2010, 10:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There is a method in IIndicators interface to register your custom indicator - registerCustomIndicator(File). After you call it you can use getIndicator(String name) to get IIndicator instance


 

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