net.sourceforge.eclipsetrader.charts
Class IndicatorPlugin

java.lang.Object
  extended bynet.sourceforge.eclipsetrader.charts.IndicatorPlugin
All Implemented Interfaces:
IIndicatorPlugin

public abstract class IndicatorPlugin
extends java.lang.Object
implements IIndicatorPlugin

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

SMA

public static final int SMA
See Also:
Constant Field Values

EMA

public static final int EMA
See Also:
Constant Field Values

WMA

public static final int WMA
See Also:
Constant Field Values

Wilder

public static final int Wilder
See Also:
Constant Field Values
Constructor Detail

IndicatorPlugin

public IndicatorPlugin()
Method Detail

dispose

public void dispose()
Description copied from interface: IIndicatorPlugin
Disposes of all resources allocated by the receiver.

Specified by:
dispose in interface IIndicatorPlugin

setInput

public void setInput(BarData barData)
Description copied from interface: IIndicatorPlugin
Set the input data.

Specified by:
setInput in interface IIndicatorPlugin

getBarData

public BarData getBarData()

getBarData

public BarData getBarData(int securityId)

getOutput

public Indicator getOutput()
Description copied from interface: IIndicatorPlugin
Return the collection of output data generated by the plugin.

Specified by:
getOutput in interface IIndicatorPlugin

clearOutput

public void clearOutput()
Description copied from interface: IIndicatorPlugin
Clear the output collection.

Specified by:
clearOutput in interface IIndicatorPlugin

calculate

public abstract void calculate()
Description copied from interface: IIndicatorPlugin
Calculate the output values.

Specified by:
calculate in interface IIndicatorPlugin

setParameters

public void setParameters(Settings settings)
Description copied from interface: IIndicatorPlugin
Set the parameters used by the plugin to do the calculations.

Specified by:
setParameters in interface IIndicatorPlugin

getParameters

public Settings getParameters()

getMA

public static PlotLine getMA(PlotLine in,
                             int type,
                             int period)

getEMA

public static PlotLine getEMA(PlotLine d,
                              int period)

getSMA

public static PlotLine getSMA(PlotLine d,
                              int period)

getWMA

public static PlotLine getWMA(PlotLine d,
                              int period)

getWilderMA

public static PlotLine getWilderMA(PlotLine d,
                                   int period)