Update filtering
This commit is contained in:
parent
7ab84cbe05
commit
8dd2b12ee6
|
|
@ -284,7 +284,7 @@ pub async fn list_up_for_buy(
|
||||||
let current_price = rt_price_vec.last().unwrap().close_price;
|
let current_price = rt_price_vec.last().unwrap().close_price;
|
||||||
let difference = (mean - rt_price_vec.last().unwrap().open_price).abs();
|
let difference = (mean - rt_price_vec.last().unwrap().open_price).abs();
|
||||||
|
|
||||||
if current_price < rt_price_vec.last().unwrap().open_price + (0.25 * difference) {
|
if current_price < rt_price_vec.last().unwrap().open_price + (0.5 * difference) {
|
||||||
} else {
|
} else {
|
||||||
keys_to_remove.insert(symbol.clone());
|
keys_to_remove.insert(symbol.clone());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user