NinjaScript > Language Reference > Strategy >
Disable()
Definition Disables the running strategy.
Syntax Disable()
Examples
protected override void OnBarUpdate() {
// Disable strategy at 2PM if (ToTime(Time[0]) == 140000) Disable(); }