From 3ed741f1bee06763e96d9fee9cf6904cbe0958ec Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 3 Jun 2023 08:40:37 +0200 Subject: [PATCH] fix on sell strategy load in bot --- dabo/functions/check_sell_conditions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 7af65e9..ba133f2 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -134,7 +134,8 @@ function check_sell_conditions_strategy { # run strategy if [ -s "${f_strategy}" ] then - local f_strategy_name=$(echo ${f_strategy} | cut -d. -f2) + [ -z "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f2) + [ -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 . "${f_strategy}" || return 0