File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ def _round_timedelta(value, _period=_data_period(index)):
126
126
127
127
# Our Sharpe mismatches `empyrical.sharpe_ratio()` because they use arithmetic mean return
128
128
# and simple standard deviation
129
- s .loc ['Sharpe Ratio' ] = (s .loc ['Return (Ann.) [%]' ] - risk_free_rate ) / (s .loc ['Volatility (Ann.) [%]' ] or np .nan ) # noqa: E501
129
+ s .loc ['Sharpe Ratio' ] = (s .loc ['Return (Ann.) [%]' ] - risk_free_rate * 100 ) / (s .loc ['Volatility (Ann.) [%]' ] or np .nan ) # noqa: E501
130
130
# Our Sortino mismatches `empyrical.sortino_ratio()` because they use arithmetic mean return
131
131
s .loc ['Sortino Ratio' ] = (annualized_return - risk_free_rate ) / (np .sqrt (np .mean (day_returns .clip (- np .inf , 0 )** 2 )) * np .sqrt (annual_trading_days )) # noqa: E501
132
132
max_dd = - np .nan_to_num (dd .max ())
You can’t perform that action at this time.
0 commit comments