Building the Optimal Trading Strategy