Skip to content

IndicatorLineOutput.LineStyle

property · IndicatorLineOutput · cAlgo.API Since 5.4

DesktopCLICloud

Gets or sets the LineStyle of a line.

Definition

LineStyle LineStyle {get; set;}
indicatorLineOutput.LineStyle: LineStyle

Returns LineStyle

Examples

var sma = ChartIndicators.Add("Simple Moving Average", Bars.ClosePrices, 20);
var line = sma.LineOutputs[0];
line.LineStyle = LineStyle.Dots;
Print("{0} line style: {1}", line.Name, line.LineStyle);
sma = api.ChartIndicators.Add("Simple Moving Average", api.Bars.ClosePrices, 20)
line = sma.LineOutputs[0]
line.LineStyle = LineStyle.Dots
api.Print(f"{line.Name} line style: {line.LineStyle}")