IndicatorAttribute.ScalePrecision
property · IndicatorAttribute · cAlgo.API
DesktopCLICloud
The price scale precision.
Definition
public int ScalePrecision {get; set;}
indicatorAttribute.ScalePrecision: int
Returns int
Examples
public partial class SampleIndicator : Indicator
{
public override void Calculate(int index)
{
Result[index] = Bars.ClosePrices[index] - Bars.OpenPrices[index];
}
}
def calculate(self, index):
api.Result[index] = api.Bars.ClosePrices[index] - api.Bars.OpenPrices[index]
{
"AccessRights": "None",
"IsOverlay": false,
"ScalePrecision": 5,
"LineOutputs": [
{
"Name": "Result",
"DisplayName": "Main"
}
]
}