DataSeries


Summary

Represents a read only list of values, typically used to represent market price series. The values are accessed with an array-like [] operator.

Syntax

public interface DataSeries

Members

NameTypeSummary
Count PropertyGets the total number of elements contained in the DataSeries.
Last MethodAccess a value in the dataseries certain bars ago
LastValue PropertyGets the last value of this DataSeries.
this[int index] PropertyGets the value in the dataseries at the specified position.

Example 1

[Parameter]
public DataSeries Source { get; set; }
//...
[Output("Main")]        
public IndicatorDataSeries Result{ get; set; }
//...
Result[index] = Source[index] * exp + previousValue * (1 - exp);
//...
Result[index] = (MarketSeries.Close[index] + MarketSeries.Open[index]) / 2;
//...