Robot constructor
constructor · Robot · cAlgo.API
DesktopCLICloud
Robot class constructor
Definition
public Robot()
Robot()
Examples
public partial class SampleBot : Robot
{
public SampleBot()
{
// The platform creates the cBot instance, API members are available from OnStart
}
protected override void OnStart()
{
Print("Started on {0}", SymbolName);
}
}
# Not available in Python: the cBot instance is created by the platform, initialize it in on_start
def on_start(self):
api.Print(f"Started on {api.SymbolName}")
{
"AccessRights": "None"
}