The IsNullOrEmpty() is part of System.Collections.Generic.IEnumerable<> class which is available to List<>.
I've copied the sample from the help guide and exported this to demonstrate it can compile.
OnExecutionUpdateSampleTest_NT8.zip
"This is GC/Gold, average fill price is at 2340.6 at 4 contracts short. Looks like too much division going on but should be correct from the example, not sure what's wrong,, any idea?"
I think this loop is not necessary:
for (int i = 0; i < LongEntry1Prices.Count; i++)
Just call the add and divide assignment without the loop.

Comment