From a0362391cddb31176fed23637a13fe49d234498e Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 22 Nov 2023 18:07:12 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/check_sell_conditions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 2b138bd..6887483 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -110,6 +110,7 @@ function check_sell_conditions { echo "${result}" >>${g_tmp}/result-${tmpfile} rm -f "${f_TRADE_HIST_FILE}" rm -f "${f_TRADE_HIST_FILE_INTERIM}" + unset f_open_trade #echo "RESULT: ${result}% (${BUY_PRICE} -> ${current})" echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})" fi @@ -138,7 +139,6 @@ function check_sell_conditions_strategy { # [ -n "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f6) # #if grep -q "buy.${f_strategy_name}.conf" ${f_TRADE_HIST_FILE} # #then - echo "SELL running ${f_strategy}" . "${f_strategy}" || return 0 # #fi # else