From bd24ffe4559ca2f9f636375bb0da901c23550f1f Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sun, 10 Mar 2024 22:41:22 +0900 Subject: [PATCH] More detail filtering --- src/strategy_team/strategy_006.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy_team/strategy_006.rs b/src/strategy_team/strategy_006.rs index c96055e..422768d 100644 --- a/src/strategy_team/strategy_006.rs +++ b/src/strategy_team/strategy_006.rs @@ -235,7 +235,7 @@ pub async fn list_up_for_sell( is_sell = true; } else if element.current_price >= element.target_price { is_sell = true; - } else if element.pure_profit_percent >= target_profit_percent * 3.0 { // absolute sell profit percent + } else if (element.pure_profit_percent >= target_profit_percent * 3.0) && (target_profit_percent != 0.0 && target_profit_percent.is_sign_positive()) { // absolute sell profit percent is_sell = true; } else if server_epoch - element.transact_time > (86_400_000) * 5 && (target_profit_percent != 0.0 && target_profit_percent.is_sign_positive() && target_profit_percent * 2.0 <= element.pure_profit_percent){ // scaled selling with time up selling (5 days)