ChartTemplateDisplaySettings.IsScalePriceChartOnly
property · ChartTemplateDisplaySettings · cAlgo.API Since 5.10
DesktopCLICloud
Defines if the auto scale fits only the bars for chart template.
Environment behaviour
Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplate.DisplaySettings).
Definition
bool IsScalePriceChartOnly {get; set;}
chartTemplateDisplaySettings.IsScalePriceChartOnly: bool
Returns bool
Examples
var template = ChartTemplates.Get("Template Name");
if (template is null)
{
Print("Template not found");
return;
}
template.DisplaySettings.IsScalePriceChartOnly = true;
Print("Template scale price chart only: {0}", template.DisplaySettings.IsScalePriceChartOnly);
template = api.ChartTemplates.Get("Template Name")
if template is None:
print("Template not found")
return
template.DisplaySettings.IsScalePriceChartOnly = True
print(f"Template scale price chart only: {template.DisplaySettings.IsScalePriceChartOnly}")