Dukascopy Support Board

Auto-restart of a stopped strategy
Page 1 of 1

Author:  whiletrue [ Wed 23 Jan, 2019, 14:57 ]
Post subject:  Auto-restart of a stopped strategy

Feature request:

As a user I want to be able to enable auto-restart of a strategy if the strategy gets stopped for some reason (other than by user request). Is this possible?


Author:  mtnfx [ Wed 23 Jan, 2019, 21:37 ]
Post subject:  Re: Auto-restart of a stopped strategy

The only reason i know why strategy can be stopped without user request is unhandled exception somewhere in strategy code.
There is option in "Preferences -> Advanced -> Advanced Settings: Stop strategies on exception". Uncheck it to get needed behaviour (it is checked by default) .

Author:  whiletrue [ Wed 23 Jan, 2019, 23:41 ]
Post subject:  Re: Auto-restart of a stopped strategy

Thanks for the reply. But I think that I missed to point out one specific thing. I want this behavior on remote running strategies.

E.g., if the Dukascopy platform reboots for some reason, then I want my strategy to be restarted as well.

Is this possible somehow?

Author:  SFXbernhard [ Sat 26 Jan, 2019, 08:48 ]
Post subject:  Re: Auto-restart of a stopped strategy

From our experience this is not possible. Also writing a warning email from a stopped strategy will not work. The only (weak) way would be to write you a notice email when the strategy gets stopped inside the onStop() method. But I would not count on this especially when something abruptly stops your strategy, e.g. a server stop.

We recommend using a Dedicated Server. We did such systems several times already.
You get your own dedicated server power and you are not sharing any with others. It is under your own control.
Also input/output data transfer would be allowed here.
Starting and stopping the server are in your hands.
You could also implement a watchdog algorithm, that informs you by text message or email when there is a disconnection or error.
It is also feasible to install a backup system on a second sever. On failure of one server, you get an automated email and trading is switched to another one automatically.

Author:  mtnfx [ Tue 29 Jan, 2019, 21:53 ]
Post subject:  Re: Auto-restart of a stopped strategy

Yes, 1GB hosting of $5/month on DigitalOcean is enough for the platform to run - this is much better then Dukas' remote strategies :)

Author:  SFXbernhard [ Fri 05 Apr, 2019, 17:24 ]
Post subject:  Re: Auto-restart of a stopped strategy

I would not go with a virtual private server (VPS) for trading robots.
Because It is always a shared system and downtime could be higher.
Better go with a dedicated server, it is then your own machine.
Even a demo test should be as close as possible to real conditions.
So why not testing everything under real conditions?
It is all about trading money, not selling books online. No experiments!

  Page 1 of 1