MetaQuotes:
Hey, thanks a lot for this article. I used the code of this article but I would like to know if you ever updated this code for speed. i did a test but when the size gets above thousand it really takes time. I don’t know if it’s something that can be optimized.
Check out the new article: Implementation of the Augmented Dickey Fuller test in MQL5.
Author: Francis Dube

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
Check out the new article: Implementation of the Augmented Dickey Fuller test in MQL5.
In this article we demonstrate the implementation of the Augmented Dickey-Fuller test, and apply it to conduct cointegration tests using the Engle-Granger method.
Simply put an ADF test is a hypothesis test, that allows us to determine if a specific characteristic of the observed data is statistically significant. In this instance the characteristic being acertained is the stationarity of a series. A statistical hypothesis is an assumption made about a data set that is represented by a sample. We can only know the real truth by working with the entire data set. Which is usually not possible for one reason or another. So a sample of a data set is tested to posit an assumption of the entire data set. The important point to remember here is that the truth of a statistical hypothesis is never known with certainty when working with samples. What we get is whether an assumption is likely true or false.
In an ADF test we consider two scenarios:
Author: Francis Dube