Dukascopy
 
 
Wiki JStore Search Login

IFXSentimentIndex method getIndexValue() returns NULL
 Post subject: IFXSentimentIndex method getIndexValue() returns NULL Post rating: 0   New post Posted: Fri 19 Oct, 2012, 08:23 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Hi support,

I have an indicator which shows the sentiment index for currencies. Indicator works ok, but not now.

long time = inputs[0][i].getTime();
IFXSentimentIndex usdIndex = dataService.getFXSentimentIndex(Currency.getInstance("USD"), time);
outputs[0][j]=usdIndex.getIndexValue(); //USD


it writes: 06:28:12 Error in indicator: java.lang.NullPointerException @ jforex.SentimentIndexIndicator.calculate(SentimentIndexIndicator.java:136)

Is there any bug in JForex or in code. As i wrote, indicator works correctly about two weeks ago.


 
 Post subject: Re: IFXSentimentIndex method getIndexValue() returns NULL Post rating: 0   New post Posted: Wed 24 Oct, 2012, 18:00 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Hi, I´am here again ;)

this is the output from Java Console
What the problem is?
Attachment:
javaConsole.JPG [140.02 KiB]
Downloaded 405 times


 

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