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