Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2862 ArrayIndexOutOfBoundsException
 Post subject: JFOREX-2862 ArrayIndexOutOfBoundsException Post rating: 0   New post Posted: Sun 13 Mar, 2011, 00:26 

User rating: 0
Joined: Thu 24 Feb, 2011, 23:25
Posts: 2
:!: RSI indicator throws following exceptions:

23:16:16 Error in indicator: java.lang.ArrayIndexOutOfBoundsException: 396 @ com.dukascopy.api.impl.ai.calculate(Unknown Source)

...

22:43:20 Error in indicator: calculate() method of indicator [RSI] returned less values than expected. Requested from-to [0]-[410], input array size [411], returned first calculated index [38], number of calculated values [373], lookback [37], lookforward [0], expected number of elements is [374]




public void onTick(Instrument instrument, ITick tick) throws JFException {
      ....
      double rsi = indicators.rsi(instrument, DEFAULT_PERIOD, OfferSide.BID, IIndicators.AppliedPrice.MEDIAN_PRICE, 14, 0);
    ...
}


Today the same happend to the stochastic indicator:

08:37:12 Error in indicator: java.lang.ArrayIndexOutOfBoundsException
08:37:11 Error in indicator: calculate() method of indicator [STOCH] returned less values than expected. Requested from-to [0]-[145], input array size [146], returned first calculated index [36], number of calculated values [110], lookback [29], lookforward [0], expected number of elements is [117]
...
08:13:38 Error in indicator: java.lang.ArrayIndexOutOfBoundsException
08:13:38 Error in indicator: java.lang.ArrayIndexOutOfBoundsException: 141 @ com.dukascopy.indicators.StochasticIndicator.calculate(StochasticIndicator.java:98)


 
 Post subject: Re: JFOREX-2862 ArrayIndexOutOfBoundsException Post rating: 0   New post Posted: Thu 24 Mar, 2011, 04:04 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
I deleted my post, it was an error on my part. It has nothing to do with this bug report.


 
 Post subject: Re: JFOREX-2862 ArrayIndexOutOfBoundsException Post rating: 0   New post Posted: Mon 28 Mar, 2011, 16:11 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Cannot be reproduced


 

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