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 BaseSimpleIndicator). 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)

     Examples: Sma, Ema

  2. Bar indicator (base class BaseBarIndicator). 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)

    Examples: Atr

  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)

    Examples: Mcc

  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)

    Examples: Vwap