IndicatorLineOutput.StickToBottom
property · IndicatorLineOutput · cAlgo.API Since 5.4
DesktopCLICloud
Gets or sets whether line should stick to bottom of it's panel or not similar to Tick Volume (Default: false).
Definition
bool StickToBottom {get; set;}
indicatorLineOutput.StickToBottom: bool
Returns bool
Examples
foreach (var indicator in ChartIndicators)
{
foreach (var lineOutput in indicator.LineOutputs)
{
if (lineOutput.PlotType == PlotType.Histogram)
lineOutput.StickToBottom = true;
}
}
for indicator in api.ChartIndicators:
for lineOutput in indicator.LineOutputs:
if lineOutput.PlotType == PlotType.Histogram:
lineOutput.StickToBottom = True
api.Print(f"{lineOutput.Name} sticks to bottom: {lineOutput.StickToBottom}")