フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

pairs trading returns matlab

1 回表示 (過去 30 日間)
alessandro caserta
alessandro caserta 2014 年 10 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Good morning everyone
I can not understand how they are calculated returns in this part of the code.
s (i: i + N-1, 1) = -reg1.coeff (2). * s (i: i + N-1, 2);
return = sum ([0 0; s (1: end-1, : ). * diff (series2) - abs (diff (s)) * cost / 2], 2);
the prices of the series that I have to examine must be standardized ?
thank you so much for your time and cooperation regards
  1 件のコメント
Siddharth Sundar
Siddharth Sundar 2014 年 10 月 17 日
編集済み: Siddharth Sundar 2014 年 10 月 17 日
Could you give some more information about where you get this piece of code from? If it is some code you are writing, it might be more helpful if you were to attach the complete code with its explanation here. You might also want to provide background information and some insight on what you are looking for in particular.
If you are referring to a File Exchange submission, you might want to contact the author directly as they will have a better idea about the code.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by