I tried to add logic to my strategy - flatten my position on specific chart.
I used Account.Flatten(instrumentsToClose); - I thought position will be flattened but it did not happen. What am I doing wrong?
and in StateDatLoaded I called
// instantiate a list of instruments
instrumentsToClose = new Collection<Instrument>();
// add instruments to the collection
instrumentsToClose.Add(Instrument.GetInstrument(Ac count.Name));
to initiate instrumentsToClose
What am I missing?
Thanks for advices
Paul
Comment