RobotAttribute


Summary

Sealed class RobotAttribute.

Remarks

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

Syntax

public sealed class RobotAttribute : Attribute

Members

NameTypeSummary
AccessRights PropertyGets or sets the access rights required for the cBot.
Name PropertyThe name of a robot. Sets from constructor.
RobotAttribute MethodInitializes a new RobotAttribute instance.
TimeZone PropertySets 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
    {
    }
}
Reference