mirror of
https://github.com/wassname/rl-portfolio-management.git
synced 2026-06-27 16:46:41 +08:00
rename MDD
This commit is contained in:
@@ -6,7 +6,7 @@ def sharpe(returns, freq=30, rfr=0.0):
|
||||
return (np.sqrt(freq) * np.mean(returns - rfr)) / (np.std(returns - rfr) + eps)
|
||||
|
||||
|
||||
def max_drawdown(X):
|
||||
def MDD(X):
|
||||
"""By nicktids, see issue 15."""
|
||||
mdd = 0
|
||||
peak = X[0]
|
||||
|
||||
Reference in New Issue
Block a user