From a37646b3534e880fceb496cf6313cfb6fefc83b9 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 28 Nov 2023 17:54:32 +0100 Subject: [PATCH] analyze 2 analyze --- dabo/analyze.sh | 3 ++- dabo/functions/check_sell_conditions.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 439a93b..dc77ffd 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -109,6 +109,7 @@ function analyze { else check_sell_conditions ${g_tmp}/${tmpfile} #| tee -a ${g_tmp}/output-${tmpfile} fi + echo "INTERIM RESULT: ${f_real_result}%" else if [ "${ANALYZE_VERBOSE}" -eq "0" ] then @@ -135,7 +136,7 @@ function analyze { echo "${result}" >>${g_tmp}/result-${tmpfile} rm -f "${f_TRADE_HIST_FILE}" rm -f "${f_TRADE_HIST_FILE_INTERIM}" - echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})" + echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})" >>${g_tmp}/output-${tmpfile} unset f_open_trade unset f_SELL fi diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 75c7c45..2b705d5 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -43,7 +43,7 @@ function check_sell_conditions { f_real_result=${g_calc_result} # analyze - [ -z "${BOT}" ] && echo "INTERIM RESULT: ${f_real_result}%" + #[ -z "${BOT}" ] && echo "INTERIM RESULT: ${f_real_result}%" # store new interim result