updates to trading algorithm to try and make it better.