How to restart a running robot?

10 May 2017, 17:05How to restart a running robot?#1
Rowie posts: 34since: 19 Apr 2017

Hi all,

Does anyone know a way of restarting a running robot from the robot code itself?

Odd as it sounds I know, but my problem is as follows:

My bot runs just fine and will cashout all my positions under a given logic condition and then I would like the robot to "reload" itself so it starts up again with all the values reset as if it had been run for the first time.

I can call OnStart() but I then need to make sure ALL the values etc have been reset.

Just wonder if there is such a thing as ReStart().

Cheers

11 May 2017, 20:22#2
krickaposts: 410since: 13 Mar 2013

If the values are from parameters, the values will be intact when restarting. The problem is there is no function or method within cAlgo to carry out a restart. A method would be gladly accepted by programmers so we have more control when a cBot is stopped and is needed to be restarted again.


http://rmmrobot.com
12 Jul 2019, 05:46#3
alexsanramonposts: 30since: 21 Feb 2019

Will this work?

RefreshData()