ChartIcon.Time
property · ChartIcon · cAlgo.API
DesktopCLICloud
Gets or sets the Time value of the icon location.
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;}
chartIcon.Time: DateTime
Returns DateTime
Examples
var icon = Chart.DrawIcon("signal", ChartIconType.UpArrow, Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Green);
icon.Time = Bars.OpenTimes.Last(1);
Print("Icon time: {0}", icon.Time);
icon = api.Chart.DrawIcon("signal", ChartIconType.UpArrow, api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Green)
icon.Time = api.Bars.OpenTimes.Last(1)
api.Print(f"Icon time: {icon.Time}")