You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for this wonderful library.
When I maximize sharpe ratio, I could get a very good sharpe but with higher volatility levels than I prefer.
My idea was to maximize sharpe ratio with a maximum volatility set, alternatively it would be nice if I could select the
highest sharpe ratio runs (that I find acceptable) and then reorder those again based on the volatility level.
I tried to find the answer in the documentation without luck.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
# Sharpe over some threshold and with minimum volatilitymaximize_func=lambdas: int(s['Sharpe Ratio'] >acceptable_threshold) *-s['Volatility (Ann.) [%]']
# Sharpe, divided by annual volatilitymaximize_func=lambdas: s['Sharpe Ratio'] /s['Volatility (Ann.) [%]']
# Calmar ratio = rate of return over max drawdownmaximize_func='Calmar Ratio'
... =bt.optimize(..., maximize=maximize_func)
First of all, thank you for this wonderful library.
When I maximize sharpe ratio, I could get a very good sharpe but with higher volatility levels than I prefer.
My idea was to maximize sharpe ratio with a maximum volatility set, alternatively it would be nice if I could select the
highest sharpe ratio runs (that I find acceptable) and then reorder those again based on the volatility level.
I tried to find the answer in the documentation without luck.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: