Posts

Showing posts from December, 2017

Stock prediction using Azure Machine Learning

Image
I like dabbling in the stock market, and wondered if artificial intelligence could help predict when I should buy/sell stock. Using one of the FANG stocks (Facebook, Amazon, Netflix, Google) I'll choose Netflix for the purposes of this blog post. Here is what Netflix has done in the last 3 months: The top graph is Fast Stochastics (12,26) As you can see, predicting the future is not easy. So my first step was to not use AI at all, but to write a program to help me decide which values of %K and %D I should use for the Fast Stochastics graph, using the last 5 years of stock history for Netflix. Historical data This can be obtained from Yahoo finance . Change the Time period to 5Y and press Apply. Then click the download data link to obtain your CSV file. Best %K %D Fast Stochastics values for Netflix The program I wrote takes into account that buying stock and selling stock incur a fee, and that the buy and sell values are not the same (bid/ask difference). The...