More detail filtering

This commit is contained in:
Sik Yoon 2024-03-10 22:41:22 +09:00
parent 857763f69e
commit bd24ffe455

View File

@ -235,7 +235,7 @@ pub async fn list_up_for_sell(
is_sell = true; is_sell = true;
} else if element.current_price >= element.target_price { } else if element.current_price >= element.target_price {
is_sell = true; is_sell = true;
} else if element.pure_profit_percent >= target_profit_percent * 3.0 { // absolute sell profit percent } else if (element.pure_profit_percent >= target_profit_percent * 3.0) && (target_profit_percent != 0.0 && target_profit_percent.is_sign_positive()) { // absolute sell profit percent
is_sell = true; is_sell = true;
} else if server_epoch - element.transact_time > (86_400_000) * 5 && } else if server_epoch - element.transact_time > (86_400_000) * 5 &&
(target_profit_percent != 0.0 && target_profit_percent.is_sign_positive() && target_profit_percent * 2.0 <= element.pure_profit_percent){ // scaled selling with time up selling (5 days) (target_profit_percent != 0.0 && target_profit_percent.is_sign_positive() && target_profit_percent * 2.0 <= element.pure_profit_percent){ // scaled selling with time up selling (5 days)