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;