fix
This commit is contained in:
parent
e7550367c8
commit
f5715ab24a
@ -13,6 +13,13 @@ function check_sell_conditions {
|
|||||||
|
|
||||||
### check current result
|
### check current result
|
||||||
|
|
||||||
|
# result values (sould be reduced to one - f_result!?)
|
||||||
|
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_real_result=$(echo "${f_result}-${FEE}" | bc)
|
||||||
|
|
||||||
|
|
||||||
# bot
|
# bot
|
||||||
if [ -n "${BOT}" ]
|
if [ -n "${BOT}" ]
|
||||||
then
|
then
|
||||||
@ -32,11 +39,11 @@ function check_sell_conditions {
|
|||||||
echo "INTERIM RESULT: ${f_BUY_PRICE_LAST_RATE_DIFF}%"
|
echo "INTERIM RESULT: ${f_BUY_PRICE_LAST_RATE_DIFF}%"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# result values (sould be reduced to one - f_result!?)
|
# # result values (sould be reduced to one - f_result!?)
|
||||||
f_result=$(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}
|
# f_BUY_PRICE_LAST_RATE_DIFF=${f_result}
|
||||||
result=${f_BUY_PRICE_LAST_RATE_DIFF}
|
# result=${f_BUY_PRICE_LAST_RATE_DIFF}
|
||||||
f_real_result=$(echo "${f_result}-${FEE}" | bc)
|
# 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}
|
||||||
|
Loading…
Reference in New Issue
Block a user