fix SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE

This commit is contained in:
olli 2023-06-01 15:24:30 +02:00
parent 2e01271903
commit 08bb049aa1

View File

@ -252,7 +252,7 @@ function check_sell_conditions_strategy {
# check for SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE # check for SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE
if [ -z ${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE} ] if [ -n "${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}" ]
then then
if [ $(echo "${f_BUY_PRICE_LAST_RATE_DIFF} < ${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}" | bc -l) -ne 0 ] if [ $(echo "${f_BUY_PRICE_LAST_RATE_DIFF} < ${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}" | bc -l) -ne 0 ]
then then