From 08bb049aa1802c8448a30b149d6b572c42c7ea39 Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 1 Jun 2023 15:24:30 +0200 Subject: [PATCH] fix SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE --- 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 1d41c59..7af65e9 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -252,7 +252,7 @@ function check_sell_conditions_strategy { # check for SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE - if [ -z ${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE} ] + if [ -n "${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}" ] then if [ $(echo "${f_BUY_PRICE_LAST_RATE_DIFF} < ${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}" | bc -l) -ne 0 ] then