Skip to content

ChartArrow.LineStyle

property · ChartArrow · cAlgo.API

DesktopCLICloud

Gets or sets the Arrow 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;}
chartArrow.LineStyle: LineStyle

Returns LineStyle

Examples

var arrow = Chart.DrawArrow("arrow", Bars.OpenTimes.Last(20), Bars.LowPrices.Last(20), Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.Red);
arrow.LineStyle = LineStyle.LinesDots;
Print("Arrow line style: {0}", arrow.LineStyle);
arrow = api.Chart.DrawArrow("arrow", api.Bars.OpenTimes.Last(20), api.Bars.LowPrices.Last(20), api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.Red)
arrow.LineStyle = LineStyle.LinesDots
api.Print(f"Arrow line style: {arrow.LineStyle}")