stock-trading-ml
stock-trading-ml copied to clipboard
Prediction timeframe extend
This is an amazing project. Thanks for the input. I have made several improvements which I will commit in few days.
Meanwhile, I was wondering how to increase the prediction timeframe. I trained the model on historical_inputs = 5. Now when I predict the model ohlcv_histories_normalised = np.array([data_normalised[i:i + history_points].copy() for i in range(len(data_normalised) - history_points)])
line in code reduces the dimension/prediction timeframe by historical_inputs = 5
days.
For eg: If my dataframe is from Feb 5 to Feb 20, it just gives the prediction for Feb 5 until Feb 15. How to get the prediction for the current day/timeframe, i.e.: Feb 15 to Feb 20?