From 7335d5b76360705d5a5bae6c652a230a35c9d78d Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 29 Oct 2023 11:15:39 +0100 Subject: [PATCH] score and strategies --- dabo/functions/check_sell_conditions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 616d43b..90d3a51 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -33,9 +33,10 @@ function check_sell_conditions { fi # result values (sould be reduced to one - f_result!?) - f_BUY_PRICE_LAST_RATE_DIFF=$(g_percentage-diff ${f_BUY_PRICE} ${f_price}) + f_result=$(g_percentage-diff ${f_BUY_PRICE} ${f_price}) + f_BUY_PRICE_LAST_RATE_DIFF=${f_result} result=${f_BUY_PRICE_LAST_RATE_DIFF} - f_result=${f_BUY_PRICE_LAST_RATE_DIFF} + f_real_result=$(echo "${f_result-$FEE}" | bc) # store new interim result echo ${f_BUY_PRICE_LAST_RATE_DIFF} >>${f_TRADE_HIST_FILE_INTERIM}