RobotAttribute.DefaultTimeFrame
property · RobotAttribute · cAlgo.API
DesktopCLICloud
Not used. cTrader applies no default time frame to a cBot: a new instance runs on the time frame of the chart it is added to, which the cBot reads from TimeFrame.
Definition
public string DefaultTimeFrame {get; set;}
robotAttribute.DefaultTimeFrame: str
Returns string
Examples
protected override void OnStart()
{
Print("Instance time frame: {0}", TimeFrame);
}
def on_start(self):
api.Print(f"Instance time frame: {api.TimeFrame}")