Applications of Stochastic Control Theory in The Trading of Stocks and Futures