Error 504 - robot stopped

Created at 02 Oct 2013, 16:15
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!
ST

stoko

Joined 05.07.2013

Error 504 - robot stopped
02 Oct 2013, 16:15


What causes this error? How can I re-start the bot? (I know its probably not possible..)

Here is the Log from cAlgo:

 


@stoko
Replies

Spotware
02 Oct 2013, 16:49

Your robot probably downloads something from internet in OnTick robot and sometimes this method throws an exception. If you don't want your robot to crash you can catch exception using try...catch statement:

 

protected override void OnTick()
{
    try
    {
        DownloadSomething();
    } 
    catch (WebException exception)
    {
        Print(exception.Message);
    }
}

 


@Spotware

stoko
02 Oct 2013, 17:09

nice! thanks!

yes the robot sends notifications using an external API which connects to the web! thanks again!


@stoko