|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.indicators.IndicatorParameters
com.exponto.jstock.indicators.MacdParameters
Contains MACD specific parameters used in computation of an indicator series
Field Summary |
Fields inherited from class com.exponto.jstock.indicators.IndicatorParameters |
m_compArray, m_parameterValues, m_validFrom, sm_delimiter, sm_validTo |
Constructor Summary | |
MacdParameters(int fast,
int slow,
int trigger)
|
|
MacdParameters(java.lang.String indParameters)
|
Method Summary | |
java.lang.Object |
clone()
Does not clone the compArray |
int[] |
fromParameterString(java.lang.String s)
Generates new parameter(s) from a string. |
java.lang.String[] |
getParameterNames()
|
javax.swing.JComponent[][] |
getUserInterface()
Provides the Options menu with components to use for this indicator. |
boolean |
indicatorEnabled()
Checks if the parameters settings of this indicator indicates that the Indicator is activated (e.g. |
void |
setParameters(int[] parameters)
|
void |
setParameters(int index,
int value)
|
java.lang.String |
toParameterString()
Used to generate a string of the parameter(s) of this instance. |
void |
updateParameters()
Used to ensure that indicators parameters are up to date before saving. |
Methods inherited from class com.exponto.jstock.indicators.IndicatorParameters |
equals, getParameters, getValidFrom, getValidTo, hashCode, setValidFrom, setValidTo, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MacdParameters(int fast, int slow, int trigger)
public MacdParameters(java.lang.String indParameters)
Method Detail |
public javax.swing.JComponent[][] getUserInterface()
IndicatorParameters
getUserInterface
in interface IndicatorParametersInterface
getUserInterface
in class IndicatorParameters
public void updateParameters()
IndicatorParametersInterface
updateParameters
in interface IndicatorParametersInterface
updateParameters
in class IndicatorParameters
public void setParameters(int index, int value)
setParameters
in class IndicatorParameters
index
- value
- public void setParameters(int[] parameters)
setParameters
in class IndicatorParameters
parameters
- public java.lang.String[] getParameterNames()
getParameterNames
in class IndicatorParameters
public boolean indicatorEnabled()
IndicatorParametersInterface
indicatorEnabled
in interface IndicatorParametersInterface
indicatorEnabled
in class IndicatorParameters
public java.lang.Object clone()
public java.lang.String toParameterString()
IndicatorParametersInterface
toParameterString
in interface IndicatorParametersInterface
public int[] fromParameterString(java.lang.String s)
IndicatorParametersInterface
fromParameterString
in interface IndicatorParametersInterface
s
- the parameters of the class encoded as a string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |