diff --git a/src/strategy_team/future_strategy_long.rs b/src/strategy_team/future_strategy_long.rs index 7abd133..5182e00 100644 --- a/src/strategy_team/future_strategy_long.rs +++ b/src/strategy_team/future_strategy_long.rs @@ -169,11 +169,11 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box= 0.6 { + if element.pure_profit_percent >= 0.8 { is_sell = true; } else if element.pure_profit_percent <= -0.8 { is_sell = true; - } else if server_epoch - element.transact_time >= (300_000) * 1 { + } else if server_epoch - element.transact_time >= (600_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 11a1667..189a966 100644 --- a/src/strategy_team/future_strategy_short.rs +++ b/src/strategy_team/future_strategy_short.rs @@ -168,11 +168,11 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box= 0.6 { + if element.pure_profit_percent >= 0.8 { is_sell = true; } else if element.pure_profit_percent <= -0.8 { is_sell = true; - } else if server_epoch - element.transact_time >= (300_000) * 1 { + } else if server_epoch - element.transact_time >= (600_000) * 1 { // time up selling is_sell = true; } else if over_turned == true {