Skip to content

ChartHorizontalLine.Thickness

property · ChartHorizontalLine · cAlgo.API

DesktopCLICloud

Gets or sets the line thickness.

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

int Thickness {get; set;}
chartHorizontalLine.Thickness: int

Returns int

Examples

var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.Thickness = 3;
Print("Support line thickness: {0}", line.Thickness);
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.Thickness = 3
api.Print(f"Support line thickness: {line.Thickness}")