Simulate the stock trading using designed algorithms and history data