diff --git a/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sharpe.py b/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sharpe.py index 0db14adab..aff4e5787 100644 --- a/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sharpe.py +++ b/freqtrade/optimize/hyperopt_loss/hyperopt_loss_sharpe.py @@ -10,7 +10,8 @@ import numpy as np from pandas import DataFrame from freqtrade.optimize.hyperopt import IHyperOptLoss - +from freqtrade.constants import Config +from freqtrade.data.metrics import calculate_sharpe class SharpeHyperOptLoss(IHyperOptLoss): """