small fixes

This commit is contained in:
olli 2023-05-19 12:01:54 +02:00
parent bd3fec41e8
commit a69801b9e0

View File

@ -166,7 +166,7 @@ function check_sell_conditions_strategy {
# hold on negative result # hold on negative result
if [ "${SELL_HOLD_IF_RESULT_NEGATIVE}" -gt 0 ] if [ "${SELL_HOLD_IF_RESULT_NEGATIVE}" -gt 0 ]
then then
if [ $(echo "(${f_BUY_PRICE_LAST_RATE_DIFF} - ${FEE}) < 0" | bc -l) -ne 0 ] if [ $(echo "(${f_BUY_PRICE_LAST_RATE_DIFF} + -${FEE}) < 0" | bc -l) -ne 0 ]
then then
g_echo_note "Result negative - holding (INTERIM RESULT ${f_BUY_PRICE_LAST_RATE_DIFF}% - FEE ${FEE}% < 0" g_echo_note "Result negative - holding (INTERIM RESULT ${f_BUY_PRICE_LAST_RATE_DIFF}% - FEE ${FEE}% < 0"
f_SELL="" f_SELL=""