If I have to hard-code the name, that means every three months I have to remember to update the code after a rollover of the ES.
Flatten() example in help:
Account.Flatten(new [] { Instrument.GetInstrument("ES 12-15") });
GetInstrument() example in help:
if (State == State.Historical) {
Instrument myInstrument = Instrument.GetInstrument("AAPL");
Print("AAPL's tick size is " + myInstrument.MasterInstrument.TickSize);
}
So, is there a dynamic way to get the name of the instrument that the strategy has been applied to?
Comment