ChartTemplateRobot
interface cAlgo.API Since 5.6
DesktopCLICloud
The interface representing a Robot of a chart template.
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
public interface ChartTemplateRobot
Namespace: cAlgo.API · Group: Templates
Examples
var template = ChartTemplates.Get("My Template");
if (template != null)
{
foreach (var robot in template.Robots)
Print("Id: {0} | Type: {1} | Parameters: {2}", robot.Id, robot.Type.Name, robot.Parameters.Count);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
for robot in template.Robots:
api.Print(f"Id: {robot.Id} | Type: {robot.Type.Name} | Parameters: {robot.Parameters.Count}")
Properties
| Name | Description |
|---|---|
IdDesktopCLICloudstring | Gets the ID of a specific indicator. |
ParametersDesktopCLICloudChartTemplateAlgoInstanceParameters | Gets the collection of Robot parameters. |
TypeDesktopCLICloudRobotType | Gets the RobotType of a Robot instance. |