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

# ScaleJustification

## Definition

Determines which scale an indicator will be plotted on.

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

## Property Value

This property returns a **ScaleJustification** value of either:

* **NinjaTrader.Gui.Charts.ScaleJustification.Left**
* **NinjaTrader.Gui.Charts.ScaleJustification.Overlay**
* **NinjaTrader.Gui.Charts.ScaleJustification.Right**

## Syntax

`ScaleJustification`

## Examples

```csharp
protected override void OnStateChange()
{       
   if (State == State.SetDefaults)
   {
     Name = "Examples Indicator";  

     // force "My Plot" to be plotted on the left scale
     ScaleJustification = ScaleJustification.Left;  
   }
   else if (State == State.Configure)
   {                
     AddPlot(Brushes.Orange, "My Plot");
   }
}
```