Click or drag to resize

Step1. Select Indicator type

Select Indicator type

At first you need to select one of the following models.

  1. Simple indicator (base class BaseSimplePortfolioIndicatorT). It takes only one series of values. Methods to add new data has the following prototype:

    C#
    1bool Add(double[] value)
    2bool Add(double[] value, DateTime time)
  2. Bar indicator (base class BaseBarPortfolioIndicatorT). It takes series of bars. Methods to add new data looks like following:

    C#
    1bool Add(double[] open, double[] high, double[] low, double[] close, double[] volume)
    2bool Add(double[] open, double[] high, double[] low, double[] close, double[] volume, DateTime time)
  3. Two series indicator (base class BaseTwoSeriesIndicator). It takes two series of values.

    Methods to add new data:

    C#
    1bool Add(double[] value1, double[] value2)
    2bool Add(double[] value1, double[] value2, DateTime time)
  4. Indicator for tick data (base class BaseTickIndicator). It takes series of ticks. Methods to add new value:

    C#
    1bool Add(double[] trade, double[] volume)
    2bool Add(double[] trade, double[] volume, DateTime time)