From ee09778eda215c7243aac5d64eed3e68df4bb9b2 Mon Sep 17 00:00:00 2001 From: iterativ Date: Thu, 7 Mar 2024 19:51:21 +0200 Subject: [PATCH] X4: grinding: fine tune the buy conditions. --- NostalgiaForInfinityX4.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/NostalgiaForInfinityX4.py b/NostalgiaForInfinityX4.py index 35bbd1e99a..a27ab582f4 100644 --- a/NostalgiaForInfinityX4.py +++ b/NostalgiaForInfinityX4.py @@ -68,7 +68,7 @@ class NostalgiaForInfinityX4(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "v14.1.304" + return "v14.1.305" stoploss = -0.99 @@ -15636,7 +15636,7 @@ def long_grind_adjust_trade_position( or (is_grind_mode and grind_1_sub_grind_count == 0) ) and (current_time - timedelta(minutes=10) > filled_entries[-1].order_filled_utc) - and ((current_time - timedelta(hours=12) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) + and ((current_time - timedelta(hours=2) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) and ( (last_candle["close"] > (last_candle["close_max_12"] * 0.92)) and (last_candle["close"] > (last_candle["close_max_24"] * 0.90)) @@ -15752,7 +15752,7 @@ def long_grind_adjust_trade_position( or (is_grind_mode and grind_2_sub_grind_count == 0) ) and (current_time - timedelta(minutes=10) > filled_entries[-1].order_filled_utc) - and ((current_time - timedelta(hours=12) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) + and ((current_time - timedelta(hours=2) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) and ( (last_candle["close"] > (last_candle["close_max_12"] * 0.92)) and (last_candle["close"] > (last_candle["close_max_24"] * 0.90)) @@ -15874,7 +15874,7 @@ def long_grind_adjust_trade_position( or (is_grind_mode and grind_3_sub_grind_count == 0) ) and (current_time - timedelta(minutes=10) > filled_entries[-1].order_filled_utc) - and ((current_time - timedelta(hours=12) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) + and ((current_time - timedelta(hours=2) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) and ( (last_candle["close"] > (last_candle["close_max_12"] * 0.92)) and (last_candle["close"] > (last_candle["close_max_24"] * 0.90)) @@ -16517,7 +16517,7 @@ def long_adjust_trade_position_no_derisk( < (regular_mode_grind_1_sub_thresholds[grind_1_sub_grind_count]) ) and (current_time - timedelta(minutes=10) > filled_entries[-1].order_filled_utc) - and ((current_time - timedelta(hours=12) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) + and ((current_time - timedelta(hours=2) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) and ( (last_candle["rsi_3_15m"] > 20.0) and (last_candle["rsi_3_1h"] > 26.0) and (last_candle["rsi_3_4h"] > 26.0) ) @@ -16583,7 +16583,7 @@ def long_adjust_trade_position_no_derisk( < (regular_mode_grind_2_sub_thresholds[grind_2_sub_grind_count]) ) and (current_time - timedelta(minutes=10) > filled_entries[-1].order_filled_utc) - and ((current_time - timedelta(hours=12) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) + and ((current_time - timedelta(hours=2) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) and ( (last_candle["rsi_3_15m"] > 20.0) and (last_candle["rsi_3_1h"] > 26.0) and (last_candle["rsi_3_4h"] > 26.0) ) @@ -16649,7 +16649,7 @@ def long_adjust_trade_position_no_derisk( < (regular_mode_grind_3_sub_thresholds[grind_3_sub_grind_count]) ) and (current_time - timedelta(minutes=10) > filled_entries[-1].order_filled_utc) - and ((current_time - timedelta(hours=12) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) + and ((current_time - timedelta(hours=2) > filled_orders[-1].order_filled_utc) or (slice_profit < -0.02)) and ( (last_candle["close"] > (last_candle["close_max_12"] * 0.92)) and (last_candle["close"] > (last_candle["close_max_24"] * 0.90))