Log and Print doesnt work
Log and Print doesnt work
03 Mar 2025, 22:53
Hi,
Every new update seems to come up with issues.
Log and Print doesnt work. Not sure if its a backtesting issue but ever since the new update. Its not working anymore which is really annoying.
Any update @Spotware?
using System;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None, AddIndicators = true)]
public class LOGTEST : Robot
{
[Parameter(DefaultValue = "Hello world!")]
public string Message { get; set; }
protected override void OnStart()
{
// To learn more about cTrader Automate visit our Help Center:
// https://help.ctrader.com/ctrader-automate
Print(Message);
}
protected override void OnTick()
{
// Handle price updates here
}
protected override void OnStop()
{
// Handle cBot stop here
}
}
}