RolloverCollection

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > Instruments > Instrument > MasterInstrument >

RolloverCollection

Previous page Return to chapter overview Next page

Definition

Indicates the rollovers that have been configured for the Master Instrument properties used in for futures.

 

Property Value

A RolloversCollection configured for the current instrument.

 

Possible values are:

ContractMonth

A DateTime structure representing the expiry month of a futures contract

Date

A DateTime structure representing the date of the rollover

Offset

A double value representing the number of points between contracts

 

Syntax

Bars.Instrument.MasterInstrument.RolloverCollection

 

Examples

ns


foreach(var rollover in Bars.Instrument.MasterInstrument.RolloverCollection)
{
    Print(rollover.ContractMonth);
    Print(rollover.Date);
    Print(rollover.Offset);
}