Check out the new article: Implementation of the Augmented Dickey Fuller test in MQL5.
Author: Francis Dube
Hello Francis,
I have read the article and tested the code which worked fine to me. In your article you defined:
Cointegration
Correlation and cointegration are statistical concepts used to measure relationships between variables, especially in the context of time series data. While both measure relationships, they serve different purposes and are applied in distinct scenarios. Correlation refers to the statistical measure of the strength and direction of the linear relationship between two variables.
and we know that correlation can be positive and negative.
My question here is can we also have cointegration which is also negative? In general your article covers the positive part.
How the code could be changed to cover the second case to have two symbols which are likely cointegrated but negatively i.e. when one of these symbols is growing up, its pair is falling down and vice versa with a level of confidence > 90%?
Thank you in advance.
Hello, Francis,
I have read the article and tested the code which works fine. In your article you have defined:
And we know that correlation can be positive and negative.
My question is, can we also have cointegration which is also negative? Overall your article covers the positive part.
How can we modify the code to cover the second case to have two symbols that are probably cointegrated but negatively, i.e. when one of these symbols goes up, its pair goes down and vice versa with a confidence level > 90%?
Thanks in advance.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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