Skip to content

ChartTemplateDisplaySettings.IsPriceScaleInverted

property · ChartTemplateDisplaySettings · cAlgo.API Since 5.10

DesktopCLICloud

Defines if the price scale is inverted 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 IsPriceScaleInverted {get; set;}
chartTemplateDisplaySettings.IsPriceScaleInverted: bool

Returns bool

Examples

var template = ChartTemplates.Get("Template Name");

if (template is null)
{
    Print("Template not found");
    return;
}

template.DisplaySettings.IsPriceScaleInverted = true;

Print("Template price scale inverted: {0}", template.DisplaySettings.IsPriceScaleInverted);
template = api.ChartTemplates.Get("Template Name")

if template is None:
    print("Template not found")
    return

template.DisplaySettings.IsPriceScaleInverted = True

print(f"Template price scale inverted: {template.DisplaySettings.IsPriceScaleInverted}")