Skip to content

Chart.IsScalePriceChartOnly

property · Chart · cAlgo.API Since 5.10

DesktopCLICloud

Gets or sets the value indicating whether the auto scale of the chart main area fits only the bars, ignoring the overlay indicator outputs and the chart objects. In the silent backtesting, the CLI and the cloud the value is only stored and has no visual effect.

Definition

bool IsScalePriceChartOnly {get; set;}
api.Chart.IsScalePriceChartOnly: bool

Returns bool

Examples

Chart.IsScalePriceChartOnly = true;

Print("Scale price chart only: {0}", Chart.IsScalePriceChartOnly);
api.Chart.IsScalePriceChartOnly = True

print(f"Scale price chart only: {api.Chart.IsScalePriceChartOnly}")