Skip to content

AlgoRegistry.Exists

method · AlgoRegistry · cAlgo.API

DesktopCLICloud

Checks existence of an algorithm.

Environment behaviour

Cloud — not supported. Registry is empty: Count 0, Indicators/Robots/Plugins empty, Exists false, Get null. Installed/Deleted/Changed events never raised.

Overloads

Exists(string name)

Checks existence of an algorithm.

bool Exists(string name)
api.AlgoRegistry.Exists(name: str) -> bool

Parameters

Name C# type Python type Description
name string str Algorithm type name

Returns bool — True if exist otherwise false.

Examples

if (AlgoRegistry.Exists("Sample Break Even"))
    Print("Sample Break Even is installed");
if api.AlgoRegistry.Exists("Sample Break Even"):
    api.Print("Sample Break Even is installed")

Exists(string name, AlgoKind algoKind)

Checks existence of an algorithm.

bool Exists(string name, AlgoKind algoKind)
api.AlgoRegistry.Exists(name: str, algoKind: AlgoKind) -> bool

Parameters

Name C# type Python type Description
name string str Algorithm type name
algoKind AlgoKind AlgoKind Algorithm type kind

Returns bool — True if exist otherwise false.

Examples

var exists = AlgoRegistry.Exists("Simple Moving Average", AlgoKind.StandardIndicator);
Print("Simple Moving Average is available: {0}", exists);
exists = api.AlgoRegistry.Exists("Simple Moving Average", AlgoKind.StandardIndicator)
api.Print(f"Simple Moving Average is available: {exists}")