Skip to content

ChartTemplateRobot.Id

property · ChartTemplateRobot · cAlgo.API Since 5.6

DesktopCLICloud

Gets the ID of a specific indicator.

Environment behaviour

Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplateRobots, ChartTemplateRobots.Add, ChartTemplateRobots.Get).

Definition

string Id {get;}
chartTemplateRobot.Id: str

Returns string

Examples

var template = ChartTemplates.Get("My Template");
var robot = template?.Robots.FirstOrDefault();
if (robot != null)
    Print("Found again by id: {0}", template.Robots.Get(robot.Id) != null);
template = api.ChartTemplates.Get("My Template")
if template is not None:
    for robot in template.Robots:
        api.Print(f"cBot id: {robot.Id}")