NinjaScript > Language Reference > Strategy >

Disable()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Disables the running strategy.
 

Syntax
Disable()

 

 
Examples

protected override void OnBarUpdate()
{

    // Disable strategy at 2PM
    if (ToTime(Time[0]) == 140000)
         Disable();
}