Disconnect stops robot
Disconnect stops robot
09 Sep 2013, 21:19
Hi
It seems that cALgo Disconnects and then connects back to the server but onError is not triggered and the bot is stopped.
How can I handle this??
Here is the on event
protected override void OnError(Error CodeOfError) { string errmsg = "Unknown Error."; if (CodeOfError.Code == ErrorCode.NoMoney) { errmsg = "ERROR: No money for order open! Check Log! Robot Stopped!"; } else if (CodeOfError.Code == ErrorCode.BadVolume) { errmsg = "ERROR: Bad volume for order open! Check Log! Robot Stopped!"; } else if (CodeOfError.Code == ErrorCode.MarketClosed) { errmsg = "ERROR: Market Closed! Check Log!"; } else if (CodeOfError.Code == ErrorCode.Disconnected) { errmsg = "ERROR: Disconnected Error! Check Log!"; } else if (CodeOfError.Code == ErrorCode.TechnicalError) { errmsg = "ERROR: Technical Error! Check Log!"; } Print(errmsg); ChartObjects.DrawText("OnError Info", errmsg, StaticPosition.Center, Colors.Red); }
I save to my DB some data on every 5 min bar and also on every tick I check some stuff in the DB but once cAlgo is Disconnected and then connected back it wotn continue run onBar and onTick events.
Below are screen shots from all the loggin that happens and it seems that the bot stopped ar 15:50:22.501
Replies
cAlgo_Fanatic
10 Sep 2013, 10:43
RE:
stoko said:
@Support: I don't see edit button so I cannt change my post but can you please remove the windows title in the screen shot so that it doesn't show the url ?
Your image has been updated.
@cAlgo_Fanatic
cAlgo_Fanatic
10 Sep 2013, 11:01
( Updated at: 21 Dec 2023, 09:20 )
RE:
stoko said:
Also here is the Journal where you can see the disconnection
This is a bug that will be fixed with the next release.
@cAlgo_Fanatic
stoko
09 Sep 2013, 21:22 ( Updated at: 21 Dec 2023, 09:20 )
Also here is the Journal where you can see the disconnection
@stoko