Hi everybody. I watched the webinar for Pairs trading. I wanted to know. I have 2 Cointegrated assets, the data is second-second. How would I change the code to match this frequency? I mean how would I do demo 2 with 2 cointegrated assets but with second by second prices and from 2.30pm to 9pm?
Best wishes

댓글 수: 4

Oleg Komarov
Oleg Komarov 2012년 2월 16일
You're assuming people have seen it and they remember it.
I would suggest you try to adapt the code and ask for a more specific question whenever you get stuck.
Mate 2u
Mate 2u 2012년 2월 16일
I am assuming people have seen it, and am specifically targeting those people. Not people who have not.
Punyadip
Punyadip 2012년 3월 11일
Hi, Do you have link to the webinar.
Good Morning I watched the pairs trading webminar. I would like to ask if anyone can give me some information about the operation of certain parts of the code.
Is regression implemented in this part?
% The strategy: % 1 Compute residuals over next N days res = series2 (i: i + N-1, 1) ... - (Reg1.coeff (1) + reg1.coeff (2). * Series2 (i: i + N-1, 2)); -------------------------------------------------- -------------------------- I am also not clear about this part:
%2 If the residuals are large and positive, then the first series
%Is Likely to decline vs. the second series. Short the first
% Series by a scaled number of shares and long the second series by
1% share. If the residuals are large and negative, do the
% Opposite.
indicated (i: i + N-1) = res / reg1.RMSE;
s (i: i + N-1, 2) = (res / reg1.RMSE> spread) ...
- (Res / reg1.RMSE <-spread);
s (i: i + N-1, 1) = -reg1.coeff (2). * s (i: i + N-1, 2);
end
end
Thank you for your concern and time. Best regards, Caserta

댓글을 달려면 로그인하십시오.

답변 (1개)

Mirko
Mirko 2013년 4월 19일

0 개 추천

try resamplets (data2,2) if it is a financial times series

카테고리

도움말 센터File Exchange에서 Transaction Cost Analysis에 대해 자세히 알아보기

태그

질문:

2012년 2월 16일

댓글:

2014년 10월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by