I have coded an ML project stock price prediction, but unfortunately my predicted values follows the training data to some extent and then shows a straight line. Why is this so?
I have attached the code and the graph. Kindly guide me.
Orange line shows training data, green shows test data. Y-axis shows closing price and X-axis shows the date