diff --git a/src/strategy_team/strategy_004.rs b/src/strategy_team/strategy_004.rs index 2d793b5..70f7b4e 100644 --- a/src/strategy_team/strategy_004.rs +++ b/src/strategy_team/strategy_004.rs @@ -113,7 +113,7 @@ pub async fn list_up_for_buy( let mut filtered_data = FilteredData::new(); filtered_data.symbol = element.symbol.clone(); filtered_data.closetime = rt_30m_vec.last().unwrap().close_time; - filtered_data.current_price = rust_decimal::prelude::FromPrimitive::from_f64(rt_30m_vec.last().unwrap().close_price).unwrap();; + filtered_data.current_price = rust_decimal::prelude::FromPrimitive::from_f64(rt_30m_vec.last().unwrap().close_price).unwrap(); filtered_data_2nd_lock.push(filtered_data); } } @@ -157,8 +157,6 @@ pub async fn list_up_for_buy( }| *close_time, ); if supertrend_search_result.is_ok() { - let current_price: Decimal = rust_decimal::prelude::FromPrimitive::from_f64(rt_30m_vec.last().unwrap().close_price).unwrap(); - if supertrend_vec[supertrend_search_result.unwrap()].area.contains("DOWN") && supertrend_vec[supertrend_search_result.unwrap()].band_value > element.current_price.to_f64().unwrap() {