Skip to content

TimeSeries.LastValue

property · TimeSeries · cAlgo.API

DesktopCLICloud

Gets the last value of this time series.

Definition

DateTime LastValue {get;}
timeSeries.LastValue: DateTime

Returns DateTime

Examples

var openTime = Bars.OpenTimes.LastValue;
Print("The current bar opened at {0}", openTime);
openTime = api.Bars.OpenTimes.LastValue
api.Print(f"The current bar opened at {openTime}")