Skip to content
- Semi-log graph of equity curve
- Exposure over time
- Half year rolling return, annualized
- Useful to see what annualized would look like in a shorter time firm
- AnnualizedReturn = (EndValue/StartValue)^YearDays/ActualDays-1
- Python:
- def ann_ret(ts):
- return np.power((ts[-1]/ts[0]), (year_length/len(ts)))-1
- Maximum Drawdown
- Python:
- def dd(ts):
- return np.min(ts/np.maximum.accumulate(ts)) – 1
- Recalculate time series vs benchmarks with same starting point
- Key python reminders:
- Remove all N/A calculations:
- Reset figures when needed:
- Start returns at 0:
- df.iloc[0].[loc[‘underlying_return’] = 0
Like this:
Like Loading...
Related