My algorithm is a test to overreaction hypothesis. It checks the stocks that overreacted yesterday and takes an opposite position . It equally allocates the portfolio to the overreacted stocks. I tested this algorithm with 50 stocks first and the algorithm was stable. But now it is giving crazy results. Please help.