From 8dd2b12ee6aa25453775bdf6003b3171426e8b04 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Fri, 26 Apr 2024 19:47:04 +0900 Subject: [PATCH] Update filtering --- src/strategy_team/strategy_008.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy_team/strategy_008.rs b/src/strategy_team/strategy_008.rs index 9f7b9fe..00d2c3b 100644 --- a/src/strategy_team/strategy_008.rs +++ b/src/strategy_team/strategy_008.rs @@ -284,7 +284,7 @@ pub async fn list_up_for_buy( let current_price = rt_price_vec.last().unwrap().close_price; let difference = (mean - rt_price_vec.last().unwrap().open_price).abs(); - if current_price < rt_price_vec.last().unwrap().open_price + (0.25 * difference) { + if current_price < rt_price_vec.last().unwrap().open_price + (0.5 * difference) { } else { keys_to_remove.insert(symbol.clone()); }