@@ -85,6 +85,14 @@ def reset(self, prev_state: State=None):
8585
8686
8787class MaxDrawdown (Metric ):
88+ """ The Maximum Drawdown (MDD) is a measure of the largest peak-to-trough decline in the
89+ value of a portfolio or investment during a specific period
90+
91+ The Maximum Drawdown Ratio represents the proportion of the peak value that was lost during
92+ the largest decline. It is a measure of the risk associated with a particular investment or
93+ portfolio. Investors and fund managers use the Maximum Drawdown and its ratio to assess the
94+ historical downside risk and potential losses that could be incurred.
95+ """
8896 def __init__ (self , name : str = "max_drawdown" ) -> None :
8997 super ().__init__ (name = name )
9098
@@ -112,6 +120,13 @@ def reset(self, prev_state: State=None):
112120
113121
114122class SharpeRatio (Metric ):
123+ """ The Sharpe Ratio, is a measure of the risk-adjusted performance of an investment or a portfolio.
124+ It helps investors evaluate the return of an investment relative to its risk.
125+
126+ A higher Sharpe Ratio indicates a better risk-adjusted performance. Investors and portfolio managers
127+ often use the Sharpe Ratio to compare the risk-adjusted returns of different investments or portfolios.
128+ It allows them to assess whether the additional return earned by taking on additional risk is justified.
129+ """
115130 def __init__ (self , ratio_days = 365.25 , name : str = 'sharpe_ratio' ):
116131 self .ratio_days = ratio_days
117132 super ().__init__ (name = name )
0 commit comments