Skip to content

Plugin.OnStart

method · Plugin · cAlgo.API

DesktopCLICloud

Called when Plugin is being started. Override this method to initialize your Plugin.

Environment behaviour

CLI — not supported. Plugins cannot run in the CLI: ctrader-cli runs cBots only.

Cloud — not supported. Plugins cannot run in the cloud: it runs cBots only.

Definition

protected internal void OnStart()
api.OnStart() -> None

Examples

protected override void OnStart()
{
    //This method is invoked when the Plugin is started.
}
def on_start(self):
    # This method is invoked when the Plugin is started.
    pass