score and strategies

This commit is contained in:
olli 2023-10-29 11:15:39 +01:00
parent 8491f0583d
commit 7335d5b763

View File

@ -33,9 +33,10 @@ function check_sell_conditions {
fi fi
# result values (sould be reduced to one - f_result!?) # 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} 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 # store new interim result
echo ${f_BUY_PRICE_LAST_RATE_DIFF} >>${f_TRADE_HIST_FILE_INTERIM} echo ${f_BUY_PRICE_LAST_RATE_DIFF} >>${f_TRADE_HIST_FILE_INTERIM}