Skip to content

RobotAttribute

Summary

Sealed class RobotAttribute.

Remarks

Marks a class as a Robot. The Robot attribute cannot be ommited.

Signature

1
public sealed class RobotAttribute : Attribute

Namespace

cAlgo.API

Properties

Name Description
Name { get; } The name of a robot. Sets from constructor.
TimeZone { get; set; } Sets the timezone for all the robot or indicator datetime references
AccessRights { get; set; } Gets or sets the access rights required for the cBot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 using cAlgo.API;
 namespace cAlgo.Robots
 {
     // This sample robot shows how to use the Robot attribute and its properties
     // Every cBot (Robot) must be annotated with this attribute
     [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class RobotAttributeSample : Robot
     {
     }
 }

Last update: December 8, 2022

Comments