diff --git a/dabo/functions/check_buy_conditions.sh b/dabo/functions/check_buy_conditions.sh index ec19607..c6275f0 100644 --- a/dabo/functions/check_buy_conditions.sh +++ b/dabo/functions/check_buy_conditions.sh @@ -178,9 +178,9 @@ ${f_BUY}" # ANALYZE if [ -n "$f_BUY" ] && [ -z "${BOT}" ] then - echo "BUY: ${f_echo_prefix} All BUY conditions met!!! -${csv_headline} -${f_BUY}" + echo "BUY: ${f_echo_prefix} All BUY conditions met!!!" +echo "${csv_headline} +${f_BUY}" | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, echo "$f_BUY" >${g_tmp}/open-${tmpfile} BUY_PRICE=$current fi diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 25aa103..c52f03e 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -144,9 +144,9 @@ function check_sell_conditions { # ANALYZE if [ -n "${f_SELL}" ] && [ -z "${BOT}" ] then - echo "SELL: $(tail -n1 ${f_ASSET_HIST_FILE} | cut -d, -f1) === -${csv_headline} -$f_SELL" + echo "SELL: $(tail -n1 ${f_ASSET_HIST_FILE} | cut -d, -f1)" + echo "${csv_headline} +${f_SELL}" | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, result=$(g_percentage-diff ${BUY_PRICE} ${current}) result=$(echo "${result}-${FEE}" | bc | sed 's/^\./0./; s/^-\./-0./') echo "${result}" >>${g_tmp}/result-${tmpfile}