I wanted to calculate the daily return for a long-short position. Say one has 1 unit of stock A (long) and alpha units of stock B short. How can one now calculate correctly the daily percentage return? The literature puts different formulas forward, but they reach different values. Two of them are
$\log(P^{A}_t / P^{A}_{t-1}) - alpha * \log(P^{B}_t / P^{B}_{t-1})$, or
$(P^{A}_t - alpha * P^{B}_{t}) / (P^{A}_{t-1} + alpha * P^{B}_{t-1}) -1 $
Are they both correct?