NinjaScript > Language Reference > Strategy >

TimeInForce

Print this Topic Previous pageReturn to chapter overviewNext page

Definition

Sets the time in force property for all orders generated by a strategy. This property is dependant on what time in force your broker may or may not support.

 

Property Value

Cbi.TimeInForce.Day
Cbi.TimeInForce.Gtc

 

Syntax

TimeInForce

 

 

Examples

protected override void Initialize()
{
    TimeInForce = Cbi.TimeInForce.Day;
}