Step1. Select Indicator type |
At first you need to select one of the following models.
Simple indicator (base class BaseSimpleIndicator). It takes only one series of values. Methods to add new data has the following prototype:
1bool Add(double value) 2bool Add(double value, DateTime time)
Examples: Sma, Ema
Bar indicator (base class BaseBarIndicator). It takes series of bars. Methods to add new data looks like following:
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
Two series indicator (base class BaseTwoSeriesIndicator). It takes two series of values.
Methods to add new data:
1bool Add(double value1, double value2) 2bool Add(double value1, double value2, DateTime time)
Examples: Mcc
Indicator for tick data (base class BaseTickIndicator). It takes series of ticks. Methods to add new value:
1bool Add(double trade, double volume) 2bool Add(double trade, double volume, DateTime time)
Examples: Vwap