Skip to content

ChartFibonacciBase.DisplayPrices

property · ChartFibonacciBase · cAlgo.API

DesktopCLICloud

Defines if the Fibonacci levels display the prices

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

bool DisplayPrices {get; set;}
chartFibonacciBase.DisplayPrices: bool

Returns bool

Examples

var retracement = Chart.DrawFibonacciRetracement("retracement", Bars.OpenTimes.Last(50), Bars.HighPrices.Last(50), Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Red);
retracement.DisplayPrices = true;
Print("Level prices shown: {0}", retracement.DisplayPrices);
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.DisplayPrices = True
api.Print(f"Level prices shown: {retracement.DisplayPrices}")