BarOutputAttribute.BullFillColor
property · BarOutputAttribute · cAlgo.API Since 5.4
DesktopCLICloud
Gets or sets the color of the bull candle fill.
Definition
public string BullFillColor {get; set;}
barOutputAttribute.BullFillColor: str
Returns string
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",
"BullFillColor": "LimeGreen",
"BearFillColor": "OrangeRed"
}
]
}