NinjaScript > Language Reference > Indicator >

AutoScale

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
If true, the indicator plot(s) are included to determine the y scaling of the chart.

 

Property Value

This property returns true if the indicator plot(s) are included in the y-scale; otherwise, false. Default set to true.

 

Syntax

AutoScale

 

 

Examples

// Initialize method of a custom indicator
protected override void Initialize()
{
    Add(new Plot(Color.Orange, "SMA"));
    AutoScale = false;
}