If you do not explicitely call asset() in your script, the initial value of priceOpen() is 0 and therefore the series is filled with 0 upon first call. Afterwards the current price is added and shifted once per bar.