fixed bug where new_buy_time wasnt declared before each loop, and variables were initialized to wrong values