Remove compatibility layer for calculate_max_drawdown

This commit is contained in:
Matthias
2024-05-15 06:54:17 +02:00
parent c79b75ff9a
commit a6b07ec96f
8 changed files with 25 additions and 62 deletions

View File

@@ -16,7 +16,7 @@ from freqtrade.data.converter import trim_dataframe
from freqtrade.data.dataprovider import DataProvider
from freqtrade.data.history import get_timerange, load_data
from freqtrade.data.metrics import (
calc_max_drawdown,
calculate_max_drawdown,
calculate_underwater,
combine_dataframes_with_mean,
create_cum_profit,
@@ -179,7 +179,7 @@ def add_max_drawdown(
Add scatter points indicating max drawdown
"""
try:
drawdown = calc_max_drawdown(trades, starting_balance=starting_balance)
drawdown = calculate_max_drawdown(trades, starting_balance=starting_balance)
drawdown = go.Scatter(
x=[drawdown.high_date, drawdown.low_date],