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

# IsAutoScale

## Definition

If true, the object will call **CalculateMinMax()** in order to determine the object's **MinValue** and **MaxValue** value used to scale the Y-axis of the chart.

## Property Value

This property returns true if the object's are included in the y-scale; otherwise, false. Default set to false for **DrawingTools**, but set to true for **Indicators**.

This property should ONLY be set from the **OnStateChange()** method during State.SetDefaults or State.Configure.

## Syntax

`IsAutoScale`

## Examples

```csharp
protected override void OnStateChange()
{
   if (State == State.SetDefaults)
   {         
     Name                 = "Example Indicator";         
     // set this to true to call CalculateMinMix() to ensure drawing tool is fully rendered in chart scale
     IsAutoScale = true;  
   }
   else if (State == State.Configure)
   {
   }
}
```