com.exponto.jstock.indicators
Class MacdParameters

java.lang.Object
  extended bycom.exponto.jstock.indicators.IndicatorParameters
      extended bycom.exponto.jstock.indicators.MacdParameters
All Implemented Interfaces:
IndicatorParametersInterface

public class MacdParameters
extends IndicatorParameters

Contains RSI specific parameters used in computation of an indicator series

Author:
kaare

Constructor Summary
MacdParameters(int fast, int slow, int trigger)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean drawThis()
          Checks if the parameters settings of this indicator indicates that the Indicator is activated (e.g.
 boolean equals(MacdParameters otherMacd)
           
 java.lang.String[] getParameterNames()
           
 int[] getParameters()
           
 javax.swing.JComponent[][] getUserInterface()
          Provides the Options menu with components to use for this indicator.
 void setParameters(int[] parameters)
           
 void setParameters(int index, int value)
           
 java.lang.String toString()
           
 void updateParameters()
          Used to update the parameters value within the IndicatorParameter class.
 
Methods inherited from class com.exponto.jstock.indicators.IndicatorParameters
getValidFrom, getValidTo, setValidFrom, setValidTo
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MacdParameters

public MacdParameters(int fast,
                      int slow,
                      int trigger)
Method Detail

getUserInterface

public javax.swing.JComponent[][] getUserInterface()
Description copied from class: IndicatorParameters
Provides the Options menu with components to use for this indicator. The JComponents are responsible for notifying "their" indicator when values are changed, and also update the properties files. Note that the receiving class makes a few assumptions on the content of the array.

Specified by:
getUserInterface in interface IndicatorParametersInterface
Specified by:
getUserInterface in class IndicatorParameters
Returns:
an JComponent array with the components that shall be displayed

updateParameters

public void updateParameters()
Description copied from interface: IndicatorParametersInterface
Used to update the parameters value within the IndicatorParameter class.

Specified by:
updateParameters in interface IndicatorParametersInterface
Specified by:
updateParameters in class IndicatorParameters

getParameters

public int[] getParameters()
Specified by:
getParameters in class IndicatorParameters
Returns:
the parameters used in the MACD calculation

setParameters

public void setParameters(int index,
                          int value)
Specified by:
setParameters in class IndicatorParameters
Parameters:
index -
value -

setParameters

public void setParameters(int[] parameters)
Specified by:
setParameters in class IndicatorParameters
Parameters:
parameters -

getParameterNames

public java.lang.String[] getParameterNames()
Specified by:
getParameterNames in class IndicatorParameters

drawThis

public boolean drawThis()
Description copied from interface: IndicatorParametersInterface
Checks if the parameters settings of this indicator indicates that the Indicator is activated (e.g. number of days used in RSI calcultaion set to a value larger than 0).

Specified by:
drawThis in interface IndicatorParametersInterface
Specified by:
drawThis in class IndicatorParameters

equals

public boolean equals(MacdParameters otherMacd)

toString

public java.lang.String toString()

clone

public java.lang.Object clone()


Copyright © 2004 Kaare Ranum