From 566ea51ee60a7de417837bc93a51b4a4bc52b00a Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sat, 25 May 2024 05:38:19 +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 5536a9c..09e8757 100644 --- a/src/strategy_team/future_strategy_long.rs +++ b/src/strategy_team/future_strategy_long.rs @@ -174,9 +174,9 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box= 0.5 { + if element.pure_profit_percent >= 0.2 { is_sell = true; - } else if element.pure_profit_percent <= -0.5 { + } else if element.pure_profit_percent <= -0.2 { is_sell = true; } else if server_epoch - element.transact_time >= (300_000) * 1 { // time up selling diff --git a/src/strategy_team/future_strategy_short.rs b/src/strategy_team/future_strategy_short.rs index 24f506b..18bbe96 100644 --- a/src/strategy_team/future_strategy_short.rs +++ b/src/strategy_team/future_strategy_short.rs @@ -174,9 +174,9 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box= 0.5 { + if element.pure_profit_percent >= 0.2 { is_sell = true; - } else if element.pure_profit_percent <= -0.5 { + } else if element.pure_profit_percent <= -0.2 { is_sell = true; } else if server_epoch - element.transact_time >= (300_000) * 1 { // time up selling