From 858da38c22997f588303aa724a2d940bcffdc5e5 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 27 Oct 2023 13:36:44 +0200 Subject: [PATCH] strategy sell signal --- dabo/functions/check_sell_conditions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 0d844b8..17172ea 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -146,6 +146,13 @@ function check_sell_conditions_strategy { fi [ -n "${BOT}" ] && g_echo_note "${f_echo_prefix}Running SELL checks" + # Check sell signal from strategy + if [ -n "${f_do_sell}" ] + then + $f_SELL="Strategy sell signal: ${f_do_sell}" + return 0 + fi + # check if the result (profit/loss until now) is lowering and sell if too low () if [ -f ${f_TRADE_HIST_FILE_INTERIM} ] then