Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no pair with different than COINT = 3. #3

Open
PZapryanov opened this issue Nov 12, 2023 · 0 comments
Open

There is no pair with different than COINT = 3. #3

PZapryanov opened this issue Nov 12, 2023 · 0 comments

Comments

@PZapryanov
Copy link

Hello,
First I want to thank you for the good COINT back testing model shared. It's great!
But, there is no case in which coint is equal on different level than 3. I've tried with symbols who give coint = 1 in the Python Cointegration library, but here the result is still "3". I used the symbols "TLT" vs "TMF" who tend to be fully cointegrated.
I also want to point one more thing I believe it's wrong and namely the "cumulative return" calculation:
CumReturn = (CumReturn + 1) * (1 + r) - 1;
This is a one trade - the current trade return formula. Then the program adds it to an array of returns "returnSeries", but at the end as a result for the whole strategy I believe program should accumulate the returns from every trade and show it instead the "CumReturn" calculated as above. Program should calculate all the returns stored in "returnSeries" elements and show it as a result for the whole strategy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant