Hi MatPed. See series in the manual. When you create a vars with a series(), the 2nd parameter is the # of items; or if left out it defaults to LookBack. Is that what you're asking?
What do you mean by "how many data"? Each run() stores a new value, so you mean the # of run() calls = the number of bars (up to the size you defined, then the oldest value is discarded)?
a) I believe MatPed was asking about the number of values stored so far. On the 1st bar that would be 1, 2nd bar 2, etc. Up to the defined length. Thereafter length.
b) length defaults to LookBack, but can be set to anything. If you create a series of length 2, then on the 1st bar 1 value has been stored; thereafter only 2. Similarly, if length is >LookBack then more than LookBack values eventually get stored.
DdlV, yes you are right, but I guess the boatman was right too. If you store the price() in vars for sure the analysis wil not start unless the lookback period is passed. So the number of items stored in the vars will be always equal to lookback. If the value are not prices but other numbers The issue could be solved initialing all the vars with a predefined value. So counting the number of significant valus stored will be an easy loop.