Quant Tra

Could you check the notebook, input cells 15-20? It appears that you have a loop over each day starting in cell 15. From the indentation and the use of the loop variable, i, it appears that the later cells assume they are running inside the loop in cell 15. But since they are in separate cells, they don't.