ChartArrow.Color
property · ChartArrow · cAlgo.API
DesktopCLICloud
Gets or sets the color of the Trend Line.
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
Color Color {get; set;}
chartArrow.Color: Color
Returns Color
Examples
var arrow = Chart.DrawArrow("arrow", Bars.OpenTimes.Last(20), Bars.LowPrices.Last(20), Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.Red);
arrow.Color = Color.Green;
Print("Arrow color: {0}", arrow.Color);
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.Color = Color.Green
api.Print(f"Arrow color: {arrow.Color}")