Update DCA logic to some extend

This commit is contained in:
Matthias
2022-02-13 15:29:48 +01:00
parent bcfa73d492
commit eed516a5c6
2 changed files with 27 additions and 23 deletions

View File

@@ -867,7 +867,7 @@ class LocalTrade():
def recalc_trade_from_orders(self):
# We need at least 2 entry orders for averaging amounts and rates.
if len(self.select_filled_orders('buy')) < 2:
if len(self.select_filled_orders(self.enter_side)) < 2:
# Just in case, still recalc open trade value
self.recalc_open_trade_value()
return