From 2e2222377f01e4ebf8c5173060cfc5ab48e76c94 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sun, 26 May 2024 07:55:35 +0900 Subject: [PATCH] Update filtering --- src/strategy_team/future_strategy_long.rs | 4 ++-- src/strategy_team/future_strategy_short.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strategy_team/future_strategy_long.rs b/src/strategy_team/future_strategy_long.rs index 6fd61bd..686be35 100644 --- a/src/strategy_team/future_strategy_long.rs +++ b/src/strategy_team/future_strategy_long.rs @@ -312,7 +312,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box Result<(), Box 1_800_000 { is_sell = true; - } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 2.5 { + } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 3.0 { 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 74d5d04..36b43eb 100644 --- a/src/strategy_team/future_strategy_short.rs +++ b/src/strategy_team/future_strategy_short.rs @@ -311,7 +311,7 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box Result<(), Box 1_800_000 { is_sell = true; - } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 2.5 { + } else if target_profit_percent.is_normal() && element.pure_profit_percent > target_profit_percent * 3.0 { is_sell = true; } else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 { is_sell = true;