> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# IsVisible

## Definition

Determines if the current **NinjaScript** object should be visible on the chart. When an object's **IsVisible** property is set to false, the object will NOT be displayed on the chart and will not be calculated to save resources.

Strategies intentionally contain no **IsVisible** property.

This property should NOT be set on indicators which add a panel or own their own panel. Panel addition/removal is determined when an indicator is added/removed to a chart and is not modified through the **IsVisible** property.

## Property Value

A bool value when true will be displayed on the chart; otherwise false; default value is true.

## Syntax

`IsVisible`

## Examples

```csharp
protected override void OnBarUpdate()
{
   // Loops through the DrawObjects collection via a threadsafe list copy
   foreach (DrawingTool draw in DrawObjects.ToList())
   {
     // Detect all manual drawn line objects and change their visibility
     if (draw is DrawingTools.Line && draw.IsUserDrawn)
     {
         draw.IsVisible = false;
     }
   }             
}
```