cAlgo - Stop all bots with a code

Created at 27 Jun 2018, 21:44
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!
irmscher9's avatar

irmscher9

Joined 22.12.2016

cAlgo - Stop all bots with a code
27 Jun 2018, 21:44


Hey guys

Is it possible to STOP all the running cBots with a piece of code?

Cheers


@irmscher9
Replies

afhacker
28 Jun 2018, 07:50

RE:

irmscher9 said:

Hey guys

Is it possible to STOP all the running cBots with a piece of code?

Cheers

You can do it with named pipe server and some other methods.


@afhacker

PanagiotisCharalampous
28 Jun 2018, 09:27

Hi irmscher9,

As afhacker siad it is possible but not via the cAlgo.API, which is what I assume you are looking for. You just need to develop a custom way to communincate this instruction to all robots. It could be via named pipes, reading from a file or anything else convenient for you.

Best Regards,

Panagiots


@PanagiotisCharalampous

irmscher9
28 Jun 2018, 12:08

Thanks :)


@irmscher9

solark
03 Jul 2018, 23:07

Really depends on your usecase but Ill throw the idea out there cause it might fit for you. You could also just kill the ctrader.exe process from a cbot.


@solark

.ics
25 Jul 2018, 03:44

You could let all your bots listen to a telegram channel where you can control them.

grtz.ics


@.ics