diff --git a/src/coex/exchange_team.rs b/src/coex/exchange_team.rs index dc84886..74bb9e1 100644 --- a/src/coex/exchange_team.rs +++ b/src/coex/exchange_team.rs @@ -939,7 +939,7 @@ pub async fn update_profit_percent() { .to_f64() .unwrap() * 100.0; - if profit_percent == f64::NAN { + if profit_percent.is_nan() { profit_percent = 0.0; } } diff --git a/src/coex/strategy_team.rs b/src/coex/strategy_team.rs index 0279d09..cc6d7d9 100644 --- a/src/coex/strategy_team.rs +++ b/src/coex/strategy_team.rs @@ -5308,7 +5308,7 @@ pub async fn strategist_014( if signal_opinions[0].opinion.contains("UP") && market_cap_index[1].market_cap_index.is_sign_negative() { - filtered_2nd_symbols = filtered_2nd_symbols; + filtered_3rd_symbols = filtered_2nd_symbols; } else { for symbol in filtered_2nd_symbols { let rsi3_1d_option = alldata.rsi3_1d_data.iter().position(|x| *x.0 == *symbol); diff --git a/src/value_estimation_team/indicators/bollingerband.rs b/src/value_estimation_team/indicators/bollingerband.rs index e91814a..edd98d8 100644 --- a/src/value_estimation_team/indicators/bollingerband.rs +++ b/src/value_estimation_team/indicators/bollingerband.rs @@ -83,7 +83,7 @@ pub async fn bollingerband( ); match result { Ok(T) => { - if T >= 0 && T <= ma_number - 1 { + if T <= ma_number - 1 { let mut read_data_iter = read_sma_data_vec[sma_index].1.iter(); for _ in T..ma_number - 1 {