Skip to content

ChartArrow.Time2

property · ChartArrow · cAlgo.API

DesktopCLICloud

Gets or sets the value 2 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 Time2 {get; set;}
chartArrow.Time2: DateTime

Returns DateTime

Examples

var arrow = Chart.DrawArrow("arrow", Bars.OpenTimes.Last(20), Bars.LowPrices.Last(20), Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.Red);
arrow.Time2 = Bars.OpenTimes.Last(5);
Print("Arrow end time: {0}", arrow.Time2);
arrow = api.Chart.DrawArrow("arrow", api.Bars.OpenTimes.Last(20), api.Bars.LowPrices.Last(20), api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.Red)
arrow.Time2 = api.Bars.OpenTimes.Last(5)
api.Print(f"Arrow end time: {arrow.Time2}")