I put the following statement just above the on order update line:
private IOrder entryOrder = null;
if(entryOrder = null && Position.MarketPosition == MarketPosition.Flat) { goLong.Set(false); goShort.Set(false); }
CS1513
CS1518
CS1041
CS0116
CS1001
CS1022
The errors include } expected; Expected class, delegate, enum, interface, or struct;
Identifier expected, 'this' is a key word; A namepsace does not directly contain members such as fields or methods, Identifier expected; and Type or namespace definition, or end-of-file expected.
Clearly I am not using IOrder properly but I copied it directly from the sample, and I just don't know what I did wrong. Can you offer any guidance, or perhaps there is a different way to reset my goLong goShort variables when the trade is over, without resetting them when flat but a limit order is in place?
Thanks
DaveN
Comment