From 157bf962f76102ae9d2aeecac57683c8802b58dd Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Sat, 7 Jan 2023 09:14:56 +0900 Subject: [PATCH] add missing imports --- freqtrade/optimize/hyperopt_loss/hyperopt_loss_sharpe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): """