Iam getting the error "Error on calling 'OnStateChange' method: Object reference not set to an instance of an object." with this line of code.
if (PositionsAccount[0].Instrument.MasterInstrument.InstrumentType == InstrumentType.Forex)
Is this syntax correct?
Thanks
Comment