Fix using wrong type

This commit is contained in:
Matthias
2024-05-15 06:57:28 +02:00
parent a6b07ec96f
commit 702ac14f27
2 changed files with 3 additions and 7 deletions

View File

@@ -164,8 +164,8 @@ def calculate_underwater(
@dataclass() @dataclass()
class DrawDownResult: class DrawDownResult:
drawdown_abs: float = 0.0 drawdown_abs: float = 0.0
high_date: datetime = None high_date: pd.Timestamp = None
low_date: datetime = None low_date: pd.Timestamp = None
high_value: float = 0.0 high_value: float = 0.0
low_value: float = 0.0 low_value: float = 0.0
relative_account_drawdown: float = 0.0 relative_account_drawdown: float = 0.0

View File

@@ -19,11 +19,7 @@ from freqtrade import __version__
from freqtrade.configuration.timerange import TimeRange from freqtrade.configuration.timerange import TimeRange
from freqtrade.constants import CANCEL_REASON, DEFAULT_DATAFRAME_COLUMNS, Config from freqtrade.constants import CANCEL_REASON, DEFAULT_DATAFRAME_COLUMNS, Config
from freqtrade.data.history import load_data from freqtrade.data.history import load_data
from freqtrade.data.metrics import ( from freqtrade.data.metrics import DrawDownResult, calculate_expectancy, calculate_max_drawdown
DrawDownResult,
calculate_expectancy,
calculate_max_drawdown,
)
from freqtrade.enums import ( from freqtrade.enums import (
CandleType, CandleType,
ExitCheckTuple, ExitCheckTuple,