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.

several questions about the API
 Post subject: several questions about the API Post rating: 0   New post Posted: Thu 11 Apr, 2013, 18:56 

User rating: 0
Joined: Tue 09 Apr, 2013, 14:14
Posts: 8
Location: SloveniaSlovenia
Hi.

1. I tried @Library("/home/someUser/libs/commons-math-2.2.jar") but get errors in jForex "Frequency cannot be resolved to a type". It works with the SDK though. How can I import apache commons lib and access e.g. math.stat.Frequency()?

2. how can I use e.g. https://code.google.com/p/renjin/ with your API?

3. why does indicators.getIndicator("linearRegSlope") returns null when indicators.getIndicator("linearReg") returns expected indicator object?

tnx


 
 Post subject: Re: several questions about the API Post rating: 0   New post Posted: Fri 12 Apr, 2013, 17:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
terryww wrote:
1. I tried @Library("/home/someUser/libs/commons-math-2.2.jar") but get errors in jForex "Frequency cannot be resolved to a type". It works with the SDK though. How can I import apache commons lib and access e.g. math.stat.Frequency()?
Make sure you have included all dependencies in the annotation.
terryww wrote:
2. how can I use e.g. https://code.google.com/p/renjin/ with your API?
Like any other dependency - by using the @Library annotation.
terryww wrote:
3. why does indicators.getIndicator("linearRegSlope") returns null when indicators.getIndicator("linearReg") returns expected indicator object?
You need to pass the indicator name as it appears in the platform with capital letters, not as it appears in the IIndicators interface, in this case, you should use the name "LINEARREG_SLOPE".


 

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