ChartTemplateColorSettings.BuyColor
property · ChartTemplateColorSettings · cAlgo.API Since 5.6
DesktopCLICloud
Gets or sets the color of Buy positions and orders.
Environment behaviour
Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplate.ColorSettings).
Definition
Color BuyColor {get; set;}
chartTemplateColorSettings.BuyColor: Color
Returns Color
Examples
var template = ChartTemplates.Get("My Template");
if (template != null)
{
template.ColorSettings.BuyColor = Color.RoyalBlue;
Print("Template buy color: {0}", template.ColorSettings.BuyColor);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
template.ColorSettings.BuyColor = Color.RoyalBlue
api.Print(f"Template buy color: {template.ColorSettings.BuyColor}")