Just for fun. I just wanted to test the algorithm. This is using the martingale method to hedge against losses.