Skip to content

IndicatorLineOutput.Color

property · IndicatorLineOutput · cAlgo.API Since 5.4

DesktopCLICloud

Gets or sets the Color of a line.

Definition

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

Returns Color

Examples

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