Fixed /severe/ bug in fundamental buy/sell algorithm