From 7d0a4383ca524e97631a85cebb199c94ec75f3d9 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sat, 20 Apr 2024 23:47:08 +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 1021f64..c7ee79d 100644 --- a/src/strategy_team/strategy_008.rs +++ b/src/strategy_team/strategy_008.rs @@ -175,7 +175,7 @@ pub async fn list_up_for_buy( // StochRSI (RSI_len: 10, StochRSI_len: 10, K: 3, D: 3) K_current < 70, K_current > d_current let mut keys_to_remove: HashSet = HashSet::new(); - let stoch_rsis = stoch_rsi(10, 10, 3, 3, &alldata.rt_price_30m_vec, &filtered_data).await?; + let stoch_rsis = stoch_rsi(30, 30, 3, 3, &alldata.rt_price_30m_vec, &filtered_data).await?; for (symbol, values) in &mut filtered_data { if stoch_rsis.contains_key(symbol) { let stoch_rsi_vec = stoch_rsis.get(symbol).unwrap();