I can’t quite get it from the documentation, is Position length dynamic or static?
If I understand correctly the collection is always the same length and has an element for each instrument and timeseries in the strategy? Each element only changes state of the Position object within that element, is that correct? That is, if I have a strategy with four time frames and two instruments (code in the Initialised method):
Add(PeriodType.Minute, 1);
Add("$CADJPY", PeriodType.Minute, 60);
Add("$CADJPY", PeriodType.Minute, 1);
Positions.Length would always be 3 (i.e. 0,1,2 and 3)? Is that true? However, the Trade objects within the collection change state.
Thanks and regards,
drolles

Comment