Module 2: Analytics

Fixed bug relating to closing Pending Orders and the Daily Profit/Loss

Fixed bug relating to closing Pending Orders and the Daily Profit/Loss