Skip to content

ChartObject.IsHidden

property · ChartObject · cAlgo.API

DesktopCLICloud

Gets or sets if object is hidden and not visible to user or not.

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 IsHidden {get; set;}
chartObject.IsHidden: bool

Returns bool

Examples

var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.IsHidden = true;
Print("Line is hidden: {0}", line.IsHidden);
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.IsHidden = True
api.Print(f"Line is hidden: {line.IsHidden}")