CCI Function gives Exception
Posted: Wed Oct 17, 2007 8:38 am
Hi:
The CCI function gives exception if the datapoints exceed 195. I am enclosing the stack trace for your reference. Could you please let us know any workaround etc.?
Any insights are appreciated. Thanks.
best regards,
The CCI function gives exception if the datapoints exceed 195. I am enclosing the stack trace for your reference. Could you please let us know any workaround etc.?
Code: Select all
The count = 195
CCI - Start, end64.0,80.0, 3,3
CCI - 195
The count = 197
CCI - Start, end64.0,80.0, 3,3
CCI - 197
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 196
at com.steema.teechart.functions.CCI.addPoints(CCI.java:130)
at com.steema.teechart.styles.Series.addValuesFrom(Series.java:1022)
at com.steema.teechart.styles.Series.fillFromDataSource(Series.java:2347)
at com.steema.teechart.styles.Series.checkDataSource(Series.java:2388)
at com.steema.teechart.styles.Series.setDataSource(Series.java:2287)
at StockFrame.cciFunction(StockFrame.java:2693)
at StockFrame.chartFunctionIndicators(StockFrame.java:1865)
at StockFrame.createFrame(StockFrame.java:3496)
at StockFrame.cbSInds_actionPerformed(StockFrame.java:516)
at StockFrame_cbSInds_actionAdapter.actionPerformed(StockFrame.java:3934)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at StockFrame.cbBSymbols_actionPerformed(StockFrame.java:380)
at StockFrame_cbBSymbols_actionAdapter.actionPerformed(StockFrame.java:3901)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
best regards,