Topics
Replies
eynt
14 Jul 2023, 17:17
RE:
Suppose I'm using a file to communicate with the cBot. I'm guessing you meant the order to stop the cBot will be read at the OnTick method and the cBot will stop itself.
This means the order to stop the cBot has to be sent before tradinig session hours are over otherwise the OnTick method will not be called on time.
Any idea on how to send the order AFTER tradinig session hours?
Thank you for your help
@eynt
eynt
26 Jan 2023, 14:14
RE:
I was not aware you do not work for cTrader, I find it a bit strange there's no official support. If a user encounters some sort of a problem, who can he reach out to? I appreciate your help.
I've noticed there was a new version released which has a good chance of solving the problem. i did not have the time to check it. In the meantime, I found a workaround - I run each symbol with a different cBot app instead of several instances on the same app.
@eynt
eynt
25 Jan 2023, 12:51
RE:
If one instance works perfectly and several cause to a crash, then obviously the problem is not with the code but with the behavior of the cTrader. Especially since on older versions this problem did not exist. If new problems occur due to change in the version then these problems should be fixed and not left as " It's the way cTrader works and you need to work around it."
At any case the minimum I expect is to get some sort of an answer in the forum and not let me hang in the air without knowing if the subject is under investigation or completely ignore. Especially since in the past there were more than one issues which turned out to be a bug on your side and not my code.
@eynt
eynt
09 Nov 2022, 12:47
( Updated at: 21 Dec 2023, 09:23 )
RE:
Hi
I ran a back test of the attached bot and got a print of "Spotware".
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None)]
public class NewcBot4 : 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(Account.BrokerName);
}
protected override void OnTick()
{
// Handle price updates here
}
protected override void OnStop()
{
// Handle cBot stop here
}
}
}
@eynt
eynt
30 Oct 2022, 17:18
( Updated at: 30 Oct 2022, 17:20 )
RE: RE: RE:
I wanted to add that this message box appears many times on debugging as well and not necessarily on heavy processing, to my question stands: is there a way to let the indicator do its thing without stopping after a few seconds?
@eynt
eynt
28 Jul 2023, 09:27
RE: define how long a cBot needs to be disconnected before the OnServerDisconnected event is triggered
Thank you,
Is there a way to know what is the current timeout set by cTrader?
@eynt