In the initialize method, I have Add(BarsPeriod.Id, 5 * BarsPeriod.Value);
I have also tried to pull out that multiplication and have it done prior to passing it into the Add function, but when I print out in BarsInProgress == 1, I call the function
Print(BarsArray[1].Period) and it shows up as 5.
Is it possible to dynamically change the value for Add or do I have to pass in a constant?
Any help appreciated.

Comment