IndicatorAttribute.IsOverlay
property · IndicatorAttribute · cAlgo.API
DesktopCLICloud
Indicates whether this instance is overlayed on the chart or plotted on a separate indicator panel
Definition
public bool IsOverlay {get; set;}
indicatorAttribute.IsOverlay: bool
Returns bool — The IsOverlay property sets the value true if this Indicator should be plotted on the chart panel; false if the indicator should be plotted on a separate Indicator Panel
Examples
public partial class MedianPriceSample : Indicator
{
public override void Calculate(int index)
{
Median[index] = (Bars.HighPrices[index] + Bars.LowPrices[index]) / 2;
}
}
def calculate(self, index):
api.Median[index] = (api.Bars.HighPrices[index] + api.Bars.LowPrices[index]) / 2
{
"AccessRights": "None",
"IsOverlay": true,
"LineOutputs": [
{
"Name": "Median",
"Color": "Orange"
}
]
}