Update filtering

This commit is contained in:
Sik Yoon 2024-05-25 02:27:24 +09:00
parent 2561a1081d
commit 2f83c28077
2 changed files with 4 additions and 2 deletions

View File

@ -154,7 +154,8 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box<dyn std::erro
let mut over_turned = false; let mut over_turned = false;
let mut is_sell = false; let mut is_sell = false;
if stoch_rsis_vec.last().unwrap().close_time > server_epoch if stoch_rsis_vec.last().unwrap().close_time > server_epoch
&& stoch_rsis_vec.last().unwrap().k < stoch_rsis_vec.last().unwrap().d { && stoch_rsis_vec[stoch_rsis.len()-1].k < stoch_rsis_vec[stoch_rsis.len()-1].d
&& stoch_rsis_vec[stoch_rsis.len()-2].k > stoch_rsis_vec[stoch_rsis.len()-2].d {
over_turned = true; over_turned = true;
} }

View File

@ -153,7 +153,8 @@ pub async fn list_up_for_sell(alldata: &AllData) -> Result<(), Box<dyn std::erro
let mut over_turned = false; let mut over_turned = false;
let mut is_sell = false; let mut is_sell = false;
if stoch_rsis_vec.last().unwrap().close_time > server_epoch if stoch_rsis_vec.last().unwrap().close_time > server_epoch
&& stoch_rsis_vec.last().unwrap().k > stoch_rsis_vec.last().unwrap().d { && stoch_rsis_vec[stoch_rsis.len()-1].k > stoch_rsis_vec[stoch_rsis.len()-1].d
&& stoch_rsis_vec[stoch_rsis.len()-2].k < stoch_rsis_vec[stoch_rsis.len()-2].d {
over_turned = true; over_turned = true;
} }