diff --git a/src/strategy_team/future_strategy_long.rs b/src/strategy_team/future_strategy_long.rs index 7679da9..70e2e1d 100644 --- a/src/strategy_team/future_strategy_long.rs +++ b/src/strategy_team/future_strategy_long.rs @@ -174,11 +174,11 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box= 0.8 { + if element.pure_profit_percent >= 0.5 { is_sell = true; - } else if element.pure_profit_percent <= -0.8 { + } else if element.pure_profit_percent <= -0.5 { is_sell = true; - } else if server_epoch - element.transact_time >= (600_000) * 1 { + } else if server_epoch - element.transact_time >= (300_000) * 1 { // time up selling is_sell = true; } else if over_turned == true { diff --git a/src/strategy_team/future_strategy_short.rs b/src/strategy_team/future_strategy_short.rs index 15df549..0785002 100644 --- a/src/strategy_team/future_strategy_short.rs +++ b/src/strategy_team/future_strategy_short.rs @@ -178,7 +178,7 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box= (600_000) * 1 { + } else if server_epoch - element.transact_time >= (300_000) * 1 { // time up selling is_sell = true; } else if over_turned == true {