Skip to content

Count Property

Summary

Gets the total number of elements contained in the DataSeries.

Signature

1
public abstract int Count {get;}

Return Value

int

Declaring Type

cAlgo.API.DataSeries

Examples

1
2
3
4
5
6
7
8
9
 protected override void OnTick()
 {
     int total = MarketSeries.Close.Count;
     Print("The total elements contained in the MarketSeries.Close Series is: {0}", total);
     int lastIndex = total - 1;
     double lastCloseValue = MarketSeries.Close[lastIndex];
        //Print the last value of the series
     Print("The last value of Close Series is: {0}", lastCloseValue);
 }

Last update: July 1, 2022

Comments