Skip to content

AlgoKind

Summary

Represents the predefined kinds of algorithm types.

Signature

1
public enum AlgoKind

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 [Robot(AccessRights = AccessRights.None)]
 public class TestExample : Robot
 {
     protected override void OnStart()
     {
         foreach (var algo in AlgoRegistry)
         {
             Print($"Name: {algo.Name} | Kind: {algo.AlgoKind}");
         }
     }
 }
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 import clr
 clr.AddReference("cAlgo.API")
 # Import cAlgo API types
 from cAlgo.API import *
 # Import trading wrapper functions
 from robot_wrapper import *
 class Test():
     def on_start(self):
         for algo in api.AlgoRegistry:
             print(f"Name: {algo.Name} | Kind: {algo.AlgoKind}")

Fields

CustomIndicator

Summary

Custom indicator

Signature

1
AlgoKind.CustomIndicator;

Return Value

AlgoKind

StandardIndicator

Summary

Standard / built-in indicator

Signature

1
AlgoKind.StandardIndicator;

Return Value

AlgoKind

Robot

Summary

Robot / cBot

Signature

1
AlgoKind.Robot;

Return Value

AlgoKind

Plugin

Summary

Plugin

Signature

1
AlgoKind.Plugin;

Return Value

AlgoKind