CLI: lack of basic functionalities
CLI: lack of basic functionalities
26 Nov 2023, 15:11
Hello,
About cTrader CLI:
Stop Command
The cTrader Automate documentation clearly states that cTrader CLI can be stopped on command.
However, I don't see this command listed among the available commands on the cTrader Help website: https://help.ctrader.com/ctrader-automate/ctrader-cli/
Please inform.
Journal File Generation / Date and Time in CLI Log
The absence of a journal file for cTrader CLI complicates troubleshooting efforts since this would provide a comprehensive record/track of all the requests and facilitate the identification of potential issues.
Moreover, the absence of timestamps and date information in the cTrader CLI log represents an additional limitation since it makes harder to accurately monitor a cBot performance, as well as to accurately pinpoint the occurrence of issues.
Is this expected to improve in the near future?
Thanks for informing on the above.

Replies
PanagiotisCharalampous
30 Nov 2023, 12:05
Hi there,
Stop Command
cBot can be stopped by killing the CLI process. This is the command implied by the documentation
Journal File Generation / Date and Time in CLI Log
Stdout contains all the information and can be forwarded to a text file. You can also implement your own logging functionality. We do not have any further plans at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Dec 2023, 06:41
RE: CLI: lack of basic functionalities
ncel01 said:
Panagiotis,
Thanks for your reply.
Killing the process is not exactly a command.
How can traders make use of the OnStop() method through the CLI then? If the process gets killed this method won't be called.
Hi there,
You can't use OnStop() through CLI at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Dec 2023, 12:14
RE: CLI: lack of basic functionalities
ncel01 said:
Thanks for informing.
Hi,
We do not have such plans at the moment.
Best regards,
@PanagiotisCharalampous
ncel01
16 Jan 2024, 21:47
RE: CLI: lack of basic functionalities
PanagiotisCharalampous said:
Hi there,
Stop Command
cBot can be stopped by killing the CLI process. This is the command implied by the documentation
Journal File Generation / Date and Time in CLI Log
Stdout contains all the information and can be forwarded to a text file. You can also implement your own logging functionality. We do not have any further plans at the moment.
Best regards,
Panagiotis
Dear Panagiotis,
Can you please provide more details about the “stdout” you mentioned?
I cannot find this file nor I am able to find any documentation about this.
Thank you.
@ncel01
PanagiotisCharalampous
17 Jan 2024, 06:38
RE: RE: CLI: lack of basic functionalities
ncel01 said:
PanagiotisCharalampous said:
Hi there,
Stop Command
cBot can be stopped by killing the CLI process. This is the command implied by the documentation
Journal File Generation / Date and Time in CLI Log
Stdout contains all the information and can be forwarded to a text file. You can also implement your own logging functionality. We do not have any further plans at the moment.
Best regards,
Panagiotis
Dear Panagiotis,
Can you please provide more details about the “stdout” you mentioned?
I cannot find this file nor I am able to find any documentation about this.
Thank you.
Hi ncel01,
stdout stands for Standard Output. In terms of C# check Console.Out
@PanagiotisCharalampous
ncel01
17 Jan 2024, 12:22
( Updated at: 18 Jan 2024, 14:11 )
RE: RE: RE: CLI: lack of basic functionalities
PanagiotisCharalampous said:
ncel01 said:
PanagiotisCharalampous said:
Hi there,
Stop Command
cBot can be stopped by killing the CLI process. This is the command implied by the documentation
Journal File Generation / Date and Time in CLI Log
Stdout contains all the information and can be forwarded to a text file. You can also implement your own logging functionality. We do not have any further plans at the moment.
Best regards,
Panagiotis
Dear Panagiotis,
Can you please provide more details about the “stdout” you mentioned?
I cannot find this file nor I am able to find any documentation about this.
Thank you.Hi ncel01,
stdout stands for Standard Output. In terms of C# check Console.Out
Panagiotis,
That's what I first mentioned then ( CLI log ).
However, I don't think that all the information is shown here, as it is in the cTrader journal.
Furthermore, timestamps are not shown, which represents an additional limitation in troubleshooting and monitoring any cBot behavior.
Please consider adding all the basic features to the CLI that will make it a real (effective) alternative to cTrader desktop when it comes algo trading!
While, for instance, OnStop() cannot be called and traders cannot fully rely on the stdout, I don't see how this can replace cTrader itself.
OnStop() is a very important method and cannot be skipped in my cBot. I believe this is also the case with many other cBots.
Tip: Controlling /tracking all the running CLI's from a dashboard in cTrader would be great!
Thank you.
@ncel01
ncel01
30 Nov 2023, 08:38
Dear cTrader team,
Thanks for informing.
@ncel01