Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How return of a strategy is calculated

Sorry for the very naive question but how is the DAILY return of a strategy calculated.

I know the return of an equity for each day can be calculated as (price-prev_price) /prev_price.

For strategy i dont know which value to use in the formula.

PS : I am trying to use pyfolio locally and need to feed it with daily return of strategy.