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.

RSI
 Post subject: RSI Post rating: 0   New post Posted: Wed 21 Jan, 2009, 03:58 

User rating: 0
Joined: Mon 06 Oct, 2008, 02:34
Posts: 6
I want to use a indicator RSI

double irsi_data = MyIndicators.rsi(instrument, Period.FIFTEEN_MINS , OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 0 , 0);

I have this error:
java.lang.InternalError: Contact developers @ jforex.EAPAT.RSI_DATA(RSI_DATA.java:533)
Error in indicator: java.lang.InternalError: Contact developers @ com.dukascopy.api.a.C.setOptInputParameter(Unknown Source)

thank you


 
 Post subject: Re: RSI Post rating: 0   New post Posted: Thu 22 Jan, 2009, 10:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
"Contact developers" error comes from ta-lib library and usually means that there is an error in parameters. In your case timePeriod parameter should be >= 2. Change it to
double irsi_data = MyIndicators.rsi(instrument, Period.FIFTEEN_MINS , OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 2 , 0);


 

Jump to:  

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