I want to improve a behavior in strategies like so:
- A major failure condition occurs.
- Execution of strategy is paused until user intervention
I have two solutions to this. First is to use a cookie file that returns at the beginning of Update when it exists. Second is to core.host:execute("stop"). In that case it seems to stop and unload from memory. I just want to pause until the user edits the params and sets allowtrade again.
It seems to me that the core might have a method I'm not aware of that is a more appropriate way to pause execution. Anyone done this?