From a484cf5ecc8133e62a4da7b8c37c2559927116f0 Mon Sep 17 00:00:00 2001 From: Souti Date: Wed, 26 Mar 2025 19:32:46 +0100 Subject: [PATCH] Correction Zeus_11 --- Zeus_11.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Zeus_11.py b/Zeus_11.py index 682650e..3b51534 100644 --- a/Zeus_11.py +++ b/Zeus_11.py @@ -272,7 +272,7 @@ class Zeus_11(IStrategy): if (last_candle['percent12'] <= -0.01) & (current_profit >= expected_profit): self.trades = list() return 'profit_' + str(count_of_buys) - if (last_candle['percent'] < 0.0) and ((last_candle['rsi'] >= 75) or before_last_candle['rsi'] >= 75): + if (current_profit >= expected_profit) & (last_candle['percent'] < 0.0) and ((last_candle['rsi'] >= 75) or before_last_candle['rsi'] >= 75): self.trades = list() return 'min_max200_' + str(count_of_buys) @@ -599,8 +599,8 @@ class Zeus_11(IStrategy): if (len(dataframe) < 1): return None pair = trade.pair - # if pair not in ('BTC/USDC', 'DOGE/USDC', 'ETH/USDC'): - # return None + if pair not in ('BTC/USDC', 'XRP/USDC'): + return None max_buys = 20 filled_buys = trade.select_filled_orders('buy') @@ -622,7 +622,7 @@ class Zeus_11(IStrategy): # if (days_since_open > count_of_buys) & (0 < count_of_buys <= max_buys) & (current_rate <= limit) & (last_candle['enter_long'] == 1): if ((last_candle['enter_long'] == 1) or last_candle['percent48'] < - 0.03) \ - and ( hours > 48 or (current_profit < -0.015 * count_of_buys)): + and ( hours > 48 or (current_profit < -0.015 * count_of_buys and hours > 6)): try: # This then calculates current safety order size