stock_prediction icon indicating copy to clipboard operation
stock_prediction copied to clipboard

some calculation wrong?

Open iorilu opened this issue 6 years ago • 0 comments

I just happen to be here , because I am also interested in using machine learning for stock prediction.

but I found your data is ordered from new to old, then use pandas rolling_mean to calculate the SMA value , but that is wrong since it's calculate the future SMA value , I think that's not correct, even your code can get a good result.

simpleMovingAverage = pandas.rolling_mean(df,window=5)

iorilu avatar Feb 13 '18 13:02 iorilu