ChartHorizontalLine.LineStyle
property · ChartHorizontalLine · cAlgo.API
DesktopCLICloud
Gets or sets the line style.
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
LineStyle LineStyle {get; set;}
chartHorizontalLine.LineStyle: LineStyle
Returns LineStyle
Examples
var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.LineStyle = LineStyle.LinesDots;
Print("Support line style: {0}", line.LineStyle);
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.LineStyle = LineStyle.LinesDots
api.Print(f"Support line style: {line.LineStyle}")