@magenta-kabuto Hello. I didn't understand your question. If you need portfolio weights for the previous day, you can use
weights.shift(time=1)f8eae066-e0b6-4854-a2c1-919a48e7708c-image.png
import qnt.data as qndata data = qndata.stocks.load_ndx_data(min_date="2005-01-01", assets=['NAS:GOOGL']) close = data.sel(field="close") weights = close - close.shift(time=1) weights_previous = weights.shift(time=1)