From c541ae7266e4cf865a434b241830911e2b2557af Mon Sep 17 00:00:00 2001 From: Yazeed Al Oyoun Date: Sun, 2 Feb 2020 07:17:50 +0100 Subject: [PATCH] fixed method arguments indentation --- freqtrade/optimize/hyperopt_loss_sharpe_daily.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/freqtrade/optimize/hyperopt_loss_sharpe_daily.py b/freqtrade/optimize/hyperopt_loss_sharpe_daily.py index ff92901ad..41217f4ca 100644 --- a/freqtrade/optimize/hyperopt_loss_sharpe_daily.py +++ b/freqtrade/optimize/hyperopt_loss_sharpe_daily.py @@ -20,14 +20,9 @@ class SharpeHyperOptLossDaily(IHyperOptLoss): """ @staticmethod - def hyperopt_loss_function( - results: DataFrame, - trade_count: int, - min_date: datetime, - max_date: datetime, - *args, - **kwargs - ) -> float: + def hyperopt_loss_function(results: DataFrame, trade_count: int, + min_date: datetime, max_date: datetime, + *args, **kwargs) -> float: """ Objective function, returns smaller number for more optimal results. @@ -50,6 +45,6 @@ class SharpeHyperOptLossDaily(IHyperOptLoss): sharp_ratio = expected_returns_mean / np.std(total_profit) * np.sqrt(365) else: # Define high (negative) sharpe ratio to be clear that this is NOT optimal. - sharp_ratio = -20.0 + sharp_ratio = -20. return -sharp_ratio