Let say i've a "ES 03-10" 5min and i want to add other securities at another time scale.
Here is what i write for example:
Add("ES 03-10", PeriodType.Minute, 1);
Add("XOM", PeriodType.Minute, 1);
Add("MSFT", PeriodType.Minute, 1);
Add("AAPL", PeriodType.Minute, 1);
then in the onbarupdate:
for(int i=0;i<5;i++)
Print(Closes[i].Count+" "+i);
If i load a full 5min day, it outputs the following:
81 0
0 1
389 2
389 3
390 4
So, why is the "Add("ES 03-10", PeriodType.Minute, 1);" not being added or added without a error?
Also, if what i add is on the PeriodType.Second time scale, it will fail from time to time and a dialog box will popup. How do i prevent this box from poping up(try/catch doesn't work)?
Thanks

Comment