Skip to content

ChartIcon.IconType

property · ChartIcon · cAlgo.API

DesktopCLICloud

Gets or sets the type 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

ChartIconType IconType {get; set;}
chartIcon.IconType: ChartIconType

Returns ChartIconType

Examples

var icon = Chart.DrawIcon("signal", ChartIconType.UpArrow, Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Green);
icon.IconType = ChartIconType.Star;
Print("Icon type: {0}", icon.IconType);
icon = api.Chart.DrawIcon("signal", ChartIconType.UpArrow, api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Green)
icon.IconType = ChartIconType.Star
api.Print(f"Icon type: {icon.IconType}")