mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Fix using wrong type
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user