From 51ad9713219d1c5322dd57b87cd0bf7149a018b6 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sun, 7 Apr 2024 18:26:28 +0900 Subject: [PATCH] Update filtering --- src/strategy_team/strategy_008.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy_team/strategy_008.rs b/src/strategy_team/strategy_008.rs index f7fa4d8..f479e11 100644 --- a/src/strategy_team/strategy_008.rs +++ b/src/strategy_team/strategy_008.rs @@ -91,7 +91,7 @@ pub async fn list_up_for_buy( values.current_price = current_price; values.closetime = rt_price_vec.last().unwrap().close_time; values.stoploss = band_value; - values.target_price = decimal_add(decimal_mul(decimal_sub(current_price, values.stoploss), dec!(4.0)), current_price); + values.target_price = decimal_add(decimal_mul(decimal_sub(current_price, values.stoploss), dec!(3.0)), current_price); } else if supertrend_vec.last().unwrap().area == SuperTrendArea::DOWN && band_value > current_price && band_value > open_price @@ -99,7 +99,7 @@ pub async fn list_up_for_buy( values.current_price = current_price; values.closetime = rt_price_vec.last().unwrap().close_time; values.stoploss = decimal_sub(open_price, decimal_sub(band_value, open_price)); - values.target_price = decimal_add(decimal_mul(decimal_sub(open_price, values.stoploss), dec!(4.0)), current_price); + values.target_price = decimal_add(decimal_mul(decimal_sub(open_price, values.stoploss), dec!(3.0)), current_price); } else { keys_to_remove.insert(symbol.clone());