Playing the stock market is like gambling. It really is.
The stock market is manipulated by powerful investors and companies. If you're lucky, you'll invest in the right company at the right time and you'll be set. If you're not lucky, you lose money.
If you really want a guaranteed way to make money on the stock market, you should create a neural network (a trained brain so to speak), take hourly data from the past couple months and feed it into this neural net, along with the appropriate results (buy/sell/hold), which you will be able to determine because if you graph the stocks you'll be able to see where it peaked.
Once the "brain" has been trained, feed it CURRENT stock indicators, and it will tell you whether you should buy, sell, or hold.
Problem is the program will only work for a little while...the stock market follows a pattern, but the pattern is constantly changing. So after a month or so you'll have to retrain the "brain".