1
$\begingroup$

log long return is log((exitprice-fees)/entryprice) without leverage.

log short return is the negative long return.

So, from the above I would get

short return = log(entryprice/(exitprice-fees)). Which doesn't make sence.

So, should it be log(entryprice/(exitprice+fees)) or log((entryprice-fees)/exitprice) ?

$\endgroup$
1
$\begingroup$

If you are short you need to use log((entryprice-fees)/exitprice). It is the same logic as in log long return case. You just need to change your entryprice and exitprice inputs. In this case, entryprice is the selling operation and exitprice will be the buying operation (just the opposite).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.