ChartRobot.Parameters
property · ChartRobot · cAlgo.API
DesktopCLICloud
Gets the collection of Robot parameters.
Environment behaviour
CLI — works differently. Values can be read; setting a value fails and resets it, because changing cBot parameters is desktop-only.
Cloud — not supported. No chart robots exist in the cloud, so there are no parameters.
Definition
AlgoInstanceParameters Parameters {get;}
chartRobot.Parameters: AlgoInstanceParameters
Returns AlgoInstanceParameters
Examples
foreach (var chartRobot in ChartRobots)
{
for (var i = 0; i < chartRobot.Parameters.Count; i++)
Print("{0}: {1} = {2}", chartRobot.Name, chartRobot.Parameters[i].Name, chartRobot.Parameters[i].Value);
}
for chartRobot in api.ChartRobots:
for i in range(chartRobot.Parameters.Count):
api.Print(f"{chartRobot.Name}: {chartRobot.Parameters[i].Name} = {chartRobot.Parameters[i].Value}")