Skip to content

IndicatorType.Parameters

property · IndicatorType · cAlgo.API

DesktopCLICloud

Gets collection of indicator parameters.

Definition

IReadonlyList<AlgoParameter> Parameters {get;}
indicatorType.Parameters: IReadonlyList[AlgoParameter]

Returns IReadonlyList<AlgoParameter>

Examples

if (AlgoRegistry.Get("Simple Moving Average", AlgoKind.StandardIndicator) is IndicatorType indicatorType)
{
    foreach (var parameter in indicatorType.Parameters)
        Print("{0} default: {1}", parameter.Name, parameter.DefaultValue);
}
algoType = api.AlgoRegistry.Get("Simple Moving Average", AlgoKind.StandardIndicator)
if algoType is not None:
    for parameter in IndicatorType(algoType).Parameters:
        api.Print(f"{parameter.Name} default: {parameter.DefaultValue}")