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