|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.eclipsetrader.charts.IndicatorPlugin
Base abstract class for all indicator plugins
Field Summary | |
---|---|
static int |
EMA
|
static int |
SMA
|
static int |
Wilder
|
static int |
WMA
|
Constructor Summary | |
---|---|
IndicatorPlugin()
|
Method Summary | |
---|---|
abstract void |
calculate()
Calculate the output values. |
void |
clearOutput()
Clear the output collection. |
void |
dispose()
Disposes of all resources allocated by the receiver. |
BarData |
getBarData()
|
BarData |
getBarData(int securityId)
|
static PlotLine |
getEMA(PlotLine d,
int period)
|
static PlotLine |
getMA(PlotLine in,
int type,
int period)
|
Indicator |
getOutput()
Return the collection of output data generated by the plugin. |
Settings |
getParameters()
|
static PlotLine |
getSMA(PlotLine d,
int period)
|
static PlotLine |
getWilderMA(PlotLine d,
int period)
|
static PlotLine |
getWMA(PlotLine d,
int period)
|
void |
setInput(BarData barData)
Set the input data. |
void |
setParameters(Settings settings)
Set the parameters used by the plugin to do the calculations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SMA
public static final int EMA
public static final int WMA
public static final int Wilder
Constructor Detail |
public IndicatorPlugin()
Method Detail |
public void dispose()
IIndicatorPlugin
dispose
in interface IIndicatorPlugin
public void setInput(BarData barData)
IIndicatorPlugin
setInput
in interface IIndicatorPlugin
public BarData getBarData()
public BarData getBarData(int securityId)
public Indicator getOutput()
IIndicatorPlugin
getOutput
in interface IIndicatorPlugin
public void clearOutput()
IIndicatorPlugin
clearOutput
in interface IIndicatorPlugin
public abstract void calculate()
IIndicatorPlugin
calculate
in interface IIndicatorPlugin
public void setParameters(Settings settings)
IIndicatorPlugin
setParameters
in interface IIndicatorPlugin
public Settings getParameters()
public static PlotLine getMA(PlotLine in, int type, int period)
public static PlotLine getEMA(PlotLine d, int period)
public static PlotLine getSMA(PlotLine d, int period)
public static PlotLine getWMA(PlotLine d, int period)
public static PlotLine getWilderMA(PlotLine d, int period)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |