NinjaScript > Language Reference > Strategy >
Sets the manner in which your strategy will behave when a connection loss is detected.
KeepRunning: Keeps the strategy running. When the connection is reestablished the strategy will resume as if no disconnect occurred.
Recalculate: Strategies will attempt to recalculate its strategy position when a connection is reestablished and held for longer than RestartDelaySeconds (default = 10). Recalculations will only occur if the strategy was stopped based on the conditions below. Should the connection be reestablished before the strategy was stopped, the strategy will continue running without recalculating as if no disconnect occurred.
StopStrategy: Automatically stops the strategy when disconnected for more than DisconnectDelaySeconds. No action will be taken when a connection is reestablished.