Fix 2 docstrings
This commit is contained in:
parent
f21185d1c4
commit
d5b516842c
@ -226,7 +226,7 @@ def calculate_sortino(trades: pd.DataFrame, min_date: datetime, max_date: dateti
|
|||||||
starting_balance: float) -> float:
|
starting_balance: float) -> float:
|
||||||
"""
|
"""
|
||||||
Calculate sortino
|
Calculate sortino
|
||||||
:param trades: DataFrame containing trades (requires columns profit_ratio)
|
:param trades: DataFrame containing trades (requires columns profit_abs)
|
||||||
:return: sortino
|
:return: sortino
|
||||||
"""
|
"""
|
||||||
if (len(trades) == 0) or (min_date is None) or (max_date is None) or (min_date == max_date):
|
if (len(trades) == 0) or (min_date is None) or (max_date is None) or (min_date == max_date):
|
||||||
@ -255,7 +255,7 @@ def calculate_sharpe(trades: pd.DataFrame, min_date: datetime, max_date: datetim
|
|||||||
starting_balance: float) -> float:
|
starting_balance: float) -> float:
|
||||||
"""
|
"""
|
||||||
Calculate sharpe
|
Calculate sharpe
|
||||||
:param trades: DataFrame containing trades (requires columns close_date and profit_ratio)
|
:param trades: DataFrame containing trades (requires column profit_abs)
|
||||||
:return: sharpe
|
:return: sharpe
|
||||||
"""
|
"""
|
||||||
if (len(trades) == 0) or (min_date is None) or (max_date is None) or (min_date == max_date):
|
if (len(trades) == 0) or (min_date is None) or (max_date is None) or (min_date == max_date):
|
||||||
@ -281,7 +281,7 @@ def calculate_calmar(trades: pd.DataFrame, min_date: datetime, max_date: datetim
|
|||||||
starting_balance: float) -> float:
|
starting_balance: float) -> float:
|
||||||
"""
|
"""
|
||||||
Calculate calmar
|
Calculate calmar
|
||||||
:param trades: DataFrame containing trades (requires columns close_date and profit_ratio)
|
:param trades: DataFrame containing trades (requires columns close_date and profit_abs)
|
||||||
:return: calmar
|
:return: calmar
|
||||||
"""
|
"""
|
||||||
if (len(trades) == 0) or (min_date is None) or (max_date is None) or (min_date == max_date):
|
if (len(trades) == 0) or (min_date is None) or (max_date is None) or (min_date == max_date):
|
||||||
|
Loading…
Reference in New Issue
Block a user