Stock Price Data Manipulation for LSTM
I used a MinMax scaler in the range between (0, 1) applied to the closing price of S&amp;P500. The RNN consisted of a single LSTM layer with a lookback window of 10 days to predict the next day's closing price. The following figure shows RNN prediction of the next day's closing price (in red). 



For code used to generate the figure, have a look at the following ipython notebook.