From bd3fec41e88d9a5916855b482831432662eb117f Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 19 May 2023 11:58:24 +0200 Subject: [PATCH] small fixes --- dabo/functions/check_buy_conditions.sh | 4 ++-- dabo/functions/check_sell_conditions.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dabo/functions/check_buy_conditions.sh b/dabo/functions/check_buy_conditions.sh index c51463c..6c17d89 100644 --- a/dabo/functions/check_buy_conditions.sh +++ b/dabo/functions/check_buy_conditions.sh @@ -94,9 +94,9 @@ ${f_BUY}" # ANALYZE if [ -n "$f_BUY" ] && [ -z "${BOT}" ] then - echo "BUY: ${f_echo_prefix} All BUY conditions met!!!" + echo "BUY: ${f_echo_prefix}${f_BUY}" echo "${csv_headline} -${f_BUY}" | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, +${f_last_line}" | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, echo "$f_BUY" >${g_tmp}/open-${tmpfile} BUY_PRICE=$current f_BUY="" diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 406f74a..0a0aec5 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -78,8 +78,8 @@ function check_sell_conditions { then echo "SELL: $(tail -n1 ${f_ASSET_HIST_FILE} | cut -d, -f1)" echo "${csv_headline} -${f_last_line} -${f_SELL}" | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, +${f_last_line}" | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, + echo "${f_SELL}" result=$(g_percentage-diff ${BUY_PRICE} ${current}) result=$(echo "${result}-${FEE}" | bc | sed 's/^\./0./; s/^-\./-0./') echo "${result}" >>${g_tmp}/result-${tmpfile}