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