If you look at the normal output to your output you can see that the numbers are change around to the wrong set of stocks if you look at your code you will find the problem. Its just minor error nothing too major so you are able to fix this problem yourself. I hope I did not say this in a rude way.