ChartTemplateDisplaySettings.PriceAlerts
property · ChartTemplateDisplaySettings · cAlgo.API Since 5.6
DesktopCLICloud
Defines if the Price Alerts are visible on the chart.
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 PriceAlerts {get; set;}
chartTemplateDisplaySettings.PriceAlerts: bool
Returns bool
Examples
var template = ChartTemplates.Get("My Template");
if (template != null)
{
template.DisplaySettings.PriceAlerts = true;
Print("Template shows price alerts: {0}", template.DisplaySettings.PriceAlerts);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
template.DisplaySettings.PriceAlerts = True
api.Print(f"Template shows price alerts: {template.DisplaySettings.PriceAlerts}")