Skip to content

ChartText.Time

property · ChartText · cAlgo.API

DesktopCLICloud

Gets or sets the Time line value.

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;}
chartText.Time: DateTime

Returns DateTime

Examples

var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.Time = Bars.OpenTimes.Last(1);
Print("Text time: {0}", text.Time);
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.Time = api.Bars.OpenTimes.Last(1)
api.Print(f"Text time: {text.Time}")