Enable logging when running the bot for real

Created at 17 Aug 2022, 15:47
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JA

jaydcrowe1989

Joined 11.08.2022

Enable logging when running the bot for real
17 Aug 2022, 15:47


Hi,

I have been back testing a bot and I am now running it for real against a demo account. The issue I am having is that the live bot is missing trades where as when back testing it, the trades are picked up and executed. Is there any way I can get the bot to create a log file when it is running for real? When I run the bot on the back tester I can print out logs and view them in the log tab. Is this available when running the bot for real? I can only see the journal but I cant log to that.

 

Cheers,

Jay


@jaydcrowe1989
Replies

PanagiotisCharalampous
17 Aug 2022, 16:31

Hi Jay,

You can use the Print() method to print entries in the log.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

jaydcrowe1989
17 Aug 2022, 16:44

RE:

PanagiotisCharalampous said:

Hi Jay,

You can use the Print() method to print entries in the log.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Hi thanks for the reply. Yes this works when back testing the bot but what about when I run it for real?


@jaydcrowe1989

PanagiotisCharalampous
17 Aug 2022, 16:50

Hi Jay,

It should work in real time too.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous