if (Instrument != null)
{
if (Instrument.MasterInstrument.InstrumentType == InstrumentType.Future)
ExitOnClose = true; // only if futures
else ExitOnClose = false;
}
BTW, there is a typo in the v6.5 F1 help on this page
Syntax
Instrument.MasterInstrument.InstrumnetType
Thanks!
Comment