ChartFibonacciBase.Color
property · ChartFibonacciBase · cAlgo.API
DesktopCLICloud
Gets or sets the lines color.
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;}
chartFibonacciBase.Color: Color
Returns Color
Examples
var retracement = Chart.DrawFibonacciRetracement("retracement", Bars.OpenTimes.Last(50), Bars.HighPrices.Last(50), Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Red);
retracement.Color = Color.Orange;
Print("Fibonacci lines color: {0}", retracement.Color);
retracement = api.Chart.DrawFibonacciRetracement("retracement", api.Bars.OpenTimes.Last(50), api.Bars.HighPrices.Last(50), api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Red)
retracement.Color = Color.Orange
api.Print(f"Fibonacci lines color: {retracement.Color}")