SuperB

Question about restart algo

Programming


When I restart the algorithm, will the variables and its stored values in previous script be deleted or not?

If the variable won't be deleted, can the system handle new variables I added under "__init__()"?

Thank you very much!

 
admin

When you restart algo, all previous variable values/states will be retreived and continue to run from there.

If you introduce new variables in the script, its value will be initialized. However, if it uses the same variable name, it won't be re-intialized.


Normally speaking, if you want to re-initialize everything, you will need to click "Reset Environment".

However this function is currently disabled for contesters to prevent frequent code amendments.


For your case, you may close all outstanding positions and stop the algo first. Then, we can assist to clear the memory cache at backend so you can rerun from beginning.

 
SuperB
Original Posted by - b'admin':

When you restart algo, all previous variable values/states will be retreived and continue to run from there.

If you introduce new variables in the script, its value will be initialized. However, if it uses the same variable name, it won't be re-intialized.


Normally speaking, if you want to re-initialize everything, you will need to click "Reset Environment".

However this function is currently disabled for contesters to prevent frequent code amendments.


For your case, you may close all outstanding positions and stop the algo first. Then, we can assist to clear the memory cache at backend so you can rerun from beginning.

I think I can add new variable for my case. 
Anyway, thanks for the quick response!