Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

pairs trading returns matlab

1 visualizzazione (ultimi 30 giorni)
alessandro caserta
alessandro caserta il 16 Ott 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commento
Siddharth Sundar
Siddharth Sundar il 17 Ott 2014
Modificato: Siddharth Sundar il 17 Ott 2014
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.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by