New answers tagged

0

For anyone who finds this post, I figured out the answer myself. Very easy to do this way. Hope this helps someone else with a brain freeze :) #Account Value Calculation df['account'] = start_acct_value + df['long_pnl'].cumsum() #Calculate Daily Returns df['returns'] = df['account'].pct_change()


Top 50 recent answers are included