public class APosition { public IOrder Entry { get; set; } public IOrder Target { get; set; } public IOrder Stop { get; set; } public int EntryId { get; set; } public Pro9Position() {} } APosition MyPositions = new List<APosition>();
However, when I try to enable this for strategies, etc, I of course, receive Serialization errors, due to the fact that IOrder is an interface.
If I change it to 'Order', which technically isn't supported, and cast the SubmitOrder() methods to (Order), it also compiles without issue, but the Serialization errors crop up stating that Order.Account.Connection isn't serializeable due to the fact that Order.Account.Connection doesn't implement IConnection.
Thus to me, it seems like we cannot have a LIST object of orders that we can quickly query and track.
Is this correct?
Comment