From 89d10e7ab8f9a92b7a6a9068cba693c045c40385 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Thu, 2 May 2024 18:11:21 +0900 Subject: [PATCH] Move selling condition --- src/strategy_team/strategy_008.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/strategy_team/strategy_008.rs b/src/strategy_team/strategy_008.rs index c63a15f..65155ce 100644 --- a/src/strategy_team/strategy_008.rs +++ b/src/strategy_team/strategy_008.rs @@ -441,15 +441,16 @@ pub async fn list_up_for_sell( { is_sell = true; break; - } else if server_epoch - element.transact_time > (1_800_000) * maximum_candles { - // time up selling - is_sell = true; - break; } else { break; } } + if server_epoch - element.transact_time >= (1_800_000) * maximum_candles { + // time up selling + is_sell = true; + } + // TODO: sell_count가 1일 때 적용하기 // else if (supertrend_vec // .last()