analyze 2 analyze

This commit is contained in:
olli 2023-11-28 17:54:32 +01:00
parent 60ec6f8189
commit a37646b353
2 changed files with 3 additions and 2 deletions

View File

@ -109,6 +109,7 @@ function analyze {
else else
check_sell_conditions ${g_tmp}/${tmpfile} #| tee -a ${g_tmp}/output-${tmpfile} check_sell_conditions ${g_tmp}/${tmpfile} #| tee -a ${g_tmp}/output-${tmpfile}
fi fi
echo "INTERIM RESULT: ${f_real_result}%"
else else
if [ "${ANALYZE_VERBOSE}" -eq "0" ] if [ "${ANALYZE_VERBOSE}" -eq "0" ]
then then
@ -135,7 +136,7 @@ function analyze {
echo "${result}" >>${g_tmp}/result-${tmpfile} echo "${result}" >>${g_tmp}/result-${tmpfile}
rm -f "${f_TRADE_HIST_FILE}" rm -f "${f_TRADE_HIST_FILE}"
rm -f "${f_TRADE_HIST_FILE_INTERIM}" 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_open_trade
unset f_SELL unset f_SELL
fi fi

View File

@ -43,7 +43,7 @@ function check_sell_conditions {
f_real_result=${g_calc_result} f_real_result=${g_calc_result}
# analyze # analyze
[ -z "${BOT}" ] && echo "INTERIM RESULT: ${f_real_result}%" #[ -z "${BOT}" ] && echo "INTERIM RESULT: ${f_real_result}%"
# store new interim result # store new interim result