> 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.

# IsNinjaScriptDrawn

## Definition

Indicates if the chart anchor was drawn by a **NinjaScript** object (such as an indicator or strategy).

## Property Value

A bool value which returns true if the object was drawn by another **NinjaScript** object; otherwise false. This property is read-only.

## Syntax

`\<chartanchor\>.IsNinjaScriptDrawn`

## Examples

```csharp
//unlocks the NinjaScript drawn object and allows the user to modify the anchor, while the NinjaScript object still 'owns' the object
protected override void OnBarUpdate()
{
     foreach(IDrawingTool dt in DrawObjects)
         {
           DrawingTools.Line sampleLine = dt as DrawingTools.Line;
           
           if (sampleLine != null && sampleLine.StartAnchor.IsNinjaScriptDrawn)
           {
               sampleLine.IsLocked = false;
               Print(sampleLine.StartAnchor.ToString());
           }
         }
}
```