You can code a failsafe, or what they call in other industries, an interlock. If an order exceeds some sane limit, or a loss is incurred that exceeds a limit, or the limit-checker fails to proactively ping the interlock, then an independent mechanism shuts it down.
This is how, say, a modern x-ray machine prevents itself from failing in a way that radiation gets stuck on.
Comments
You can code a failsafe, or what they call in other industries, an interlock. If an order exceeds some sane limit, or a loss is incurred that exceeds a limit, or the limit-checker fails to proactively ping the interlock, then an independent mechanism shuts it down.
This is how, say, a modern x-ray machine prevents itself from failing in a way that radiation gets stuck on.