DataSeries.Count
property · DataSeries · cAlgo.API
DesktopCLICloud
Gets the total number of elements contained in the DataSeries.
Definition
int Count {get;}
dataSeries.Count: int
Returns int
Examples
var count = Bars.ClosePrices.Count;
Print("Close prices count: {0}, last close: {1}", count, Bars.ClosePrices[count - 1]);
count = api.Bars.ClosePrices.Count
api.Print(f"Close prices count: {count}, last close: {api.Bars.ClosePrices[count - 1]}")