Skip to content

ChartVerticalLine.Time

property · ChartVerticalLine · cAlgo.API

DesktopCLICloud

Gets or sets the value on the Time line.

Environment behaviour

CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.

Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.

Definition

DateTime Time {get; set;}
chartVerticalLine.Time: DateTime

Returns DateTime

Examples

var line = Chart.DrawVerticalLine("sessionStart", Bars.OpenTimes.LastValue, Color.Gray);
line.Time = Server.Time.Date;
Print("Vertical line time: {0}", line.Time);
line = api.Chart.DrawVerticalLine("sessionStart", api.Bars.OpenTimes.LastValue, Color.Gray)
line.Time = api.Server.Time.Date
api.Print(f"Vertical line time: {line.Time}")