From 6d843dc0e25fb56e26c32e3b9da37aeebd07fbe7 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sat, 11 May 2024 16:34:44 +0900 Subject: [PATCH] Update filtering --- src/strategy_team/strategy_008.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strategy_team/strategy_008.rs b/src/strategy_team/strategy_008.rs index f26f112..d300b61 100644 --- a/src/strategy_team/strategy_008.rs +++ b/src/strategy_team/strategy_008.rs @@ -51,8 +51,8 @@ pub async fn list_up_for_buy( // } // remove_keys(&mut filtered_data, keys_to_remove).await; - // Wiliams %R(200) < -50.0 - // Wiliams %R(30) < -50.0 + // Wiliams %R(200) < -60.0 + // Wiliams %R(30) < -60.0 let mut keys_to_remove: HashSet = HashSet::new(); let mut wprs200 = wiliams_percent_r(200, &alldata.rt_price_30m_vec, &filtered_data).await?; let mut wprs30 = wiliams_percent_r(30, &alldata.rt_price_30m_vec, &filtered_data).await?; @@ -62,9 +62,9 @@ pub async fn list_up_for_buy( if wpr200_vec.len() > 15 && wpr30_vec.len() > 15 && wpr200_vec.last().unwrap().close_time > server_epoch - && wpr200_vec.last().unwrap().r_value < -50.0 + && wpr200_vec.last().unwrap().r_value < -60.0 && wpr30_vec.last().unwrap().close_time > server_epoch - && wpr30_vec.last().unwrap().r_value < -50.0 + && wpr30_vec.last().unwrap().r_value < -60.0 { } else { keys_to_remove.insert(symbol.clone());