Summary
Sealed class RobotAttribute.
Remarks
Marks a class as a Robot. The Robot attribute cannot be ommited.
Syntax
public sealed class RobotAttribute : Attribute
Members
Name | Type | Summary |
---|---|---|
AccessRights | Property | Gets or sets the access rights required for the cBot. |
Name | Property | The name of a robot. Sets from constructor. |
RobotAttribute | Method | Initializes a new RobotAttribute instance. |
TimeZone | Property | Sets the timezone for all the robot or indicator datetime references |
Example 1
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 { } }