I see on the example page we specify the expiration date as for example "ES 09-16"
protected override void OnStateChange()
{
if (State == State.Configure)
{
// Add a 5 minute Bars object - BarsInProgress index = 1
AddDataSeries(BarsPeriodType.Minute, 5);
// Add a 100 tick Bars object for the ES 09-16 contract - BarsInProgress index = 2
AddDataSeries("ES 09-16", BarsPeriodType.Tick, 100);
}
}
Is it possible to specify the Instrument symbol only for example "ES" instead of "ES 09-16"?
My purpose is to always get the latest expiry for the instrument by default, so I don't have to manually update the expiry every quarter/month/expiry. Thanks!
Comment