From ca993c83eaf353087103c5ce144438adee937957 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Fri, 11 Feb 2022 23:05:46 -0600 Subject: [PATCH] todo removal --- freqtrade/edge/edge_positioning.py | 3 ++- freqtrade/plugins/protections/stoploss_guard.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/edge/edge_positioning.py b/freqtrade/edge/edge_positioning.py index b2f4534f1..df23327b4 100644 --- a/freqtrade/edge/edge_positioning.py +++ b/freqtrade/edge/edge_positioning.py @@ -159,7 +159,8 @@ class Edge: logger.info(f'Measuring data from {min_date.strftime(DATETIME_PRINT_FORMAT)} ' f'up to {max_date.strftime(DATETIME_PRINT_FORMAT)} ' f'({(max_date - min_date).days} days)..') - # TODO-lev: Should edge support shorts? needs to be investigated further... + # Should edge support shorts? needs to be investigated further + # * (add enter_short exit_short) headers = ['date', 'open', 'high', 'low', 'close', 'enter_long', 'exit_long'] trades: list = [] diff --git a/freqtrade/plugins/protections/stoploss_guard.py b/freqtrade/plugins/protections/stoploss_guard.py index 025ba5f1f..40edf1204 100644 --- a/freqtrade/plugins/protections/stoploss_guard.py +++ b/freqtrade/plugins/protections/stoploss_guard.py @@ -51,7 +51,6 @@ class StoplossGuard(IProtection): # if pair: # filters.append(Trade.pair == pair) # trades = Trade.get_trades(filters).all() - # TODO-lev: Liquidation price? trades1 = Trade.get_trades_proxy(pair=pair, is_open=False, close_date=look_back_until) trades = [trade for trade in trades1 if (str(trade.sell_reason) in (