s-leroux / fin

Set of tools for personal investment
MIT License
1 stars 0 forks source link

Implement the logarithmic return algorithm #13

Open s-leroux opened 1 year ago

s-leroux commented 1 year ago

Implement (in Cython) the log return algorithm:

r[i] = ln(p[i]/p[i-i]) 

or

r[i] = ln(p[i])-ln(p[i-i])