From a69801b9e0b9e168e56f43c3132bdc809a83702e Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 19 May 2023 12:01:54 +0200 Subject: [PATCH] small fixes --- 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 0a0aec5..6c17851 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -166,7 +166,7 @@ function check_sell_conditions_strategy { # hold on negative result if [ "${SELL_HOLD_IF_RESULT_NEGATIVE}" -gt 0 ] then - if [ $(echo "(${f_BUY_PRICE_LAST_RATE_DIFF} - ${FEE}) < 0" | bc -l) -ne 0 ] + if [ $(echo "(${f_BUY_PRICE_LAST_RATE_DIFF} + -${FEE}) < 0" | bc -l) -ne 0 ] then g_echo_note "Result negative - holding (INTERIM RESULT ${f_BUY_PRICE_LAST_RATE_DIFF}% - FEE ${FEE}% < 0" f_SELL=""