parse arguments and a command called trade to simulate trades in text file