IndicatorAttribute.AutoRescale
property · IndicatorAttribute · cAlgo.API
DesktopCLICloud
Indicates whether this instance automatically rescales the chart or not. Default value is true.
Definition
public bool AutoRescale {get; set;}
indicatorAttribute.AutoRescale: bool
Returns bool
Examples
public partial class SampleIndicator : Indicator
{
public override void Calculate(int index)
{
Result[index] = Bars.HighPrices[index] + 50 * Symbol.PipSize;
}
}
def calculate(self, index):
api.Result[index] = api.Bars.HighPrices[index] + 50 * api.Symbol.PipSize
{
"AccessRights": "None",
"IsOverlay": true,
"AutoRescale": false,
"LineOutputs": [
{
"Name": "Result",
"DisplayName": "Main"
}
]
}