Hi. I've been studying the prediction code for a while now and unfortunately there's a problem with it. The wavelet denoising effectiveness rely on future information. From what I get, given the price up to time t, we want to predict it at time t+5.
┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐
│ t │ │ t+1 │ │ t+2 │ │ t+3 │ │ t+4 │ │ t+5 │
└─────┘ └─────┘ └─────┘ └─────┘ └─────┘ └─────┘
I'm actually in interested in trend prediction, but I believe that a good price predictor might also be a good trend predictor. And, in fact, when running this code, we a get a 79% accuracy in trend prediction.
However, when preprocessing the data, it is denoised all at once. In a real scenario, denoising would be "incrementally" done. I mean, it could only be applied until time t. So I've modified the code for the preprocessing to consider only up to the last candle of each window. After doing that, the accuracy drops to around 50%. No better than a coin tossing.
After some tests, I've realized that the more points I add after time t, the better the prediction. So if my windows end at time t but I use prices up to t+4 while denoising, I get back to the 79% accuracy. Now I'm 5 minutes away from the predicted price, but 20 minutes past the prediction's time of reference. It's too late to use that information for any sensible action.
I'm just point this out so it can be taken into account on future researches.
Thank you for your work.
Hi. I've been studying the prediction code for a while now and unfortunately there's a problem with it. The wavelet denoising effectiveness rely on future information. From what I get, given the price up to time
t, we want to predict it at timet+5.I'm actually in interested in trend prediction, but I believe that a good price predictor might also be a good trend predictor. And, in fact, when running this code, we a get a 79% accuracy in trend prediction.
However, when preprocessing the data, it is denoised all at once. In a real scenario, denoising would be "incrementally" done. I mean, it could only be applied until time
t. So I've modified the code for the preprocessing to consider only up to the last candle of each window. After doing that, the accuracy drops to around 50%. No better than a coin tossing.After some tests, I've realized that the more points I add after time
t, the better the prediction. So if my windows end at timetbut I use prices up tot+4while denoising, I get back to the 79% accuracy. Now I'm 5 minutes away from the predicted price, but 20 minutes past the prediction's time of reference. It's too late to use that information for any sensible action.I'm just point this out so it can be taken into account on future researches.
Thank you for your work.