scorpionhiccup / StockPricePrediction

Stock Price Prediction using Machine Learning Techniques
http://scorpionhiccup.github.io/StockPricePrediction
MIT License
1.29k stars 416 forks source link

Where did 50_day_moving_avg column come from ?? #5

Closed HanyHossny closed 6 years ago

HanyHossny commented 6 years ago

How did you calculate the columns (50_day_moving_avg, 10_day_volatility)? Did you extract them from the standard four columns (open, close, high, low) by any means?

scorpionhiccup commented 6 years ago

Hi @HanyHossny, we had calculated 50_day_moving_avg by calculating rolling_mean over 50 days using the package pandas. I don't have the script for the same but you can easily write the same. Have a look at this stackoverflow question to get a rough idea.