RolloverCollection

View as Markdown

Definition

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

Syntax

Bars.Instrument.MasterInstrument.RolloverCollection

Property Value

A RolloversCollection configured for the current instrument.

Possible values are:

ParameterDescription
ContractMonthA DateTime structure representing the expiry month of a futures contract
DateA DateTime structure representing the date of the rollover
OffsetA double value representing the number of points between contracts

Examples

1foreach(var rollover in Bars.Instrument.MasterInstrument.RolloverCollection)
2{
3 Print(rollover.ContractMonth);
4 Print(rollover.Date);
5 Print(rollover.Offset);
6}