CreateDataSeries


Summary

Initialization of an IndicatorDataSeries.

Syntax

public IndicatorDataSeries CreateDataSeries()

Example 1

private IndicatorDataSeries series;
protected override void Initialize()
{
    series = CreateDataSeries();
}
public override void Calculate(int index)
{
    series[index] = (MarketSeries.Close[index] + MarketSeries.Open[index]) / 2;
}