October 16th, 2014, 2:15 pm
Good morning everyonethank you very much for your help.I'm documenting the subject Ornstein Uhlenbeck pairs trading.I ask you another little help.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 cooperationregards
Last edited by
milano on October 15th, 2014, 10:00 pm, edited 1 time in total.