From 02251bb171af06c943d0bd208878d62b2f3bdd16 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sun, 26 May 2024 08:11:16 +0900 Subject: [PATCH] Update filtering --- src/strategy_team/future_strategy_long.rs | 2 +- src/strategy_team/future_strategy_short.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy_team/future_strategy_long.rs b/src/strategy_team/future_strategy_long.rs index 686be35..8339330 100644 --- a/src/strategy_team/future_strategy_long.rs +++ b/src/strategy_team/future_strategy_long.rs @@ -333,7 +333,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box 1_800_000 { is_sell = true; - } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 3.0 { + } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 2.5 { is_sell = true; } else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 { is_sell = true; diff --git a/src/strategy_team/future_strategy_short.rs b/src/strategy_team/future_strategy_short.rs index 36b43eb..6e79efd 100644 --- a/src/strategy_team/future_strategy_short.rs +++ b/src/strategy_team/future_strategy_short.rs @@ -331,7 +331,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box 1_800_000 { is_sell = true; - } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 3.0 { + } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 2.5 { is_sell = true; } else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 { is_sell = true;