Handling cAlgo Restart/crash/disconnect
Handling cAlgo Restart/crash/disconnect
11 Aug 2013, 09:56
If cAlgo is disconnected will it forget open positions from cBots?
If cAlgo is restarted or crashes will it forget open positions from cBots?
If yes, is there a workaround or an update coming soon to address this issue?
thanks
Replies
Cerunnos
12 Aug 2013, 14:31
RE:
cAlgo_Development said:
In nearest future we are going to implement an ability to restarts robots automatically when cAlgo is restarted.
This planned feature is a must in VPS systems and would contribute to greater safety. Hopefully it is coming very soon (for example as an NT service with parameter <starting Robot>) ...
@Cerunnos
soulrider
29 Oct 2015, 01:31
RE:
cAlgo_Development said:
In nearest future we are going to implement an ability to restarts robots automatically when cAlgo is restarted.
Was it implemented so far?
@soulrider
1007601
28 Mar 2016, 13:40
RE: RE:
Cerunnos said:
cAlgo_Development said:
In nearest future we are going to implement an ability to restarts robots automatically when cAlgo is restarted.
This planned feature is a must in VPS systems and would contribute to greater safety. Hopefully it is coming very soon (for example as an NT service with parameter ) ...
Agree with this;
I've noticed some "odd" behaviour of my calgo logging in and out which I'm pretty sure means the bot is no longer running. I hadn't set up alerts for *this* but after noticing some other odd behaviour I ensured that there were always limit exits and stops in case some unexpected event happened (anywhere in the signal chain) and I wasn't hoping for a responsive algo to close all positions !!! [which BTW works fantastically in backtesting :) ]
@1007601
soulrider
28 Mar 2016, 14:01
Agree as well.
I have stopped trading with my cBot because of those connection issues and inability to automatically start a bot after cTrader restart.
@soulrider
Spotware
29 Mar 2016, 12:44
Dear Trader,
It's in our plans to provide users with the ability to set their cBot to start automatically on the application start up in the future. Stay tuned. Additionally, you can post your ideas/suggestions to http://vote.spotware.com/
@Spotware
3183 Capital
28 Oct 2016, 08:49
Any update on the feature of reconnection and then open/existing trades being re-instaded/re-connected with executed Algo?
@3183 Capital
andi21
24 May 2017, 10:33
@Spotware:
I have a suggestion for this to be implemented the easiest way with the least effort:
just remember / persist the state of an bot-instance-play-button on hard disk. So if a user clicks on play of a bot instance the state "1" for bot-instance X is persisted. If the user clicks on stop of a bot instance the state "0" for bot-instance X is persisted. And if cAlgo starts it looks for the states and if it has states and they are also set to 1, then it just activates the bots.
It is even not necessary to display a message or leave an info about this behaviour, because if somebody starts a bot then he wants to run it until he stops it again - no matter if there was a server crash etc..
Thanks in advance.
Best Regards,
andi21
@andi21
cAlgo_Development
12 Aug 2013, 12:13
If cAlgo is disconnected it is impossible to open positions because you can not send your request to the server. You will not also receive OnTick and OnBar events in this case. When it is reconnected, you will start to receive events and it will be possible to execute new trades.
If you close cAlgo (or it is totally crashed) your code is no longer executed, so now trade operations will be executed (except server-side SL, TP and Pendin Orders). When you restart cAlgo robots will be stopped by default, so you need to run them manually. In nearest future we are going to implement an ability to restarts robots automatically when cAlgo is restarted.
@cAlgo_Development