From b867d231fa1c2901ef2e9565f41e21e0cfb10375 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Fri, 24 May 2024 22:57:19 +0900 Subject: [PATCH] Update filtering --- src/strategy_team/future_strategy_long.rs | 2 ++ src/strategy_team/future_strategy_short.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/strategy_team/future_strategy_long.rs b/src/strategy_team/future_strategy_long.rs index b6000fe..fb146f8 100644 --- a/src/strategy_team/future_strategy_long.rs +++ b/src/strategy_team/future_strategy_long.rs @@ -111,6 +111,8 @@ pub async fn list_up_for_buy( && stoch_rsi_vec[a].k > stoch_rsi_vec[a].d && stoch_rsi_vec[a - 1].k < 20.0 && stoch_rsi_vec[a - 2].k < 20.0 + && stoch_rsi_vec[a - 3].k < 20.0 + && stoch_rsi_vec[a - 4].k < 20.0 }) { values.closetime = current_info.1; diff --git a/src/strategy_team/future_strategy_short.rs b/src/strategy_team/future_strategy_short.rs index 9f60960..51b15aa 100644 --- a/src/strategy_team/future_strategy_short.rs +++ b/src/strategy_team/future_strategy_short.rs @@ -111,6 +111,8 @@ pub async fn list_up_for_buy( && stoch_rsi_vec[a].k < stoch_rsi_vec[a].d && stoch_rsi_vec[a - 1].k > 80.0 && stoch_rsi_vec[a - 2].k > 80.0 + && stoch_rsi_vec[a - 3].k > 80.0 + && stoch_rsi_vec[a - 4].k > 80.0 }) { values.closetime = current_info.1;