Discussion of article "Econometric approach to finding market patterns: Autocorrelation, Heat Maps and Scatter Plots" - page 2
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, MetaQuotes has change python API, so this functions not work now. Maybe later I'll fix this and attach a new notebook
Also, you can check new documentation on this site
Thanks A lot Mr, for your fast reply and your cooperation is highly appreciated
waiting for your new file.
Nice article! Thanks for sharing your work!
Hope you find some time to fix the issue with Python API.
/Rasoul
Fixed notebook
Corrected version of the notebook, due to a changed python api
Corrected version of the notebook, due to a changed python api
Attached to the article
Close[-1] = (Close[0]-Close[lag]) - ((Close[lag]-Close[lag*2]) - (Close[lag-1]-Close[lag*2-1])))
If the same formula was applied here, then the situation is similar to MA prediction, the longer the period, the more accurate the MA prediction is one step ahead.
What I did was to take the MA of a large period, predict a bar ahead, then calculate the price prediction from that. I calculated the prediction error (real price-forecast). I calculated the price increments. As a result, the error was worse than the increments. So you can say, "today will be like yesterday" is the best prediction.
Close[-1] = (Close[0]-Close[lag]) - ((Close[lag]-Close[lag*2]) - (Close[lag-1]-Close[lag*2-1])))
If the same formula was applied here, then the situation is similar to MA prediction, the longer the period, the more accurate the MA prediction is one step ahead.
What I did was to take the MA of a large period, predict a bar ahead, then calculate the price prediction from that. I calculated the prediction error (real price-forecast). I calculated the price increments. As a result, the error was worse than the increments. So you can say, "today will be like yesterday" is the best prediction.
.
In the chart settings (Ctrl+O) you need to select the required number of bars.
later I will do the same method with autoregression, upload the series to python, build the model.
Thanks for your articles, I've really enjoyed reading them!
I noticed in this example you set the .diff(lag) after selecting the single hour throughout the article. Meaning that a lag of 25 actually corresponds to a lag of 25 days.
The exception is in the 3D plot where you apply the lag before selecting the hour. Was this intentional?