mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-02 20:30:25 +00:00
Update default expectancy ratio to 100
This commit is contained in:
@@ -202,7 +202,7 @@ def calculate_expectancy(trades: pd.DataFrame) -> Tuple[float, float]:
|
||||
"""
|
||||
|
||||
expectancy = 0
|
||||
expectancy_ratio = float('inf')
|
||||
expectancy_ratio = 100
|
||||
|
||||
if len(trades) > 0:
|
||||
winning_trades = trades.loc[trades['profit_abs'] > 0]
|
||||
|
||||
Reference in New Issue
Block a user