BarOutputAttribute.IsColorCustomizable
property · BarOutputAttribute · cAlgo.API Since 5.4
DesktopCLICloud
Gets or sets if Output line color is customizable or not.
Definition
public bool IsColorCustomizable {get; set;}
barOutputAttribute.IsColorCustomizable: bool
Returns bool
Examples
public partial class BarOutputSample : Indicator
{
public override void Calculate(int index)
{
Result[index] = new OhlcvBar(Bars.OpenPrices[index], Bars.HighPrices[index], Bars.LowPrices[index], Bars.ClosePrices[index], (long)Bars.TickVolumes[index]);
}
}
def calculate(self, index):
api.Result[index] = OhlcvBar(api.Bars.OpenPrices[index], api.Bars.HighPrices[index], api.Bars.LowPrices[index], api.Bars.ClosePrices[index], int(api.Bars.TickVolumes[index]))
{
"AccessRights": "None",
"IsOverlay": false,
"BarOutputs": [
{
"Name": "Result",
"DisplayName": "Main",
"IsColorCustomizable": false
}
]
}