fix SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE

This commit is contained in:
olli 2023-06-01 15:24:01 +02:00
parent 36029642f5
commit 2e01271903

View File

@ -252,9 +252,12 @@ function check_sell_conditions_strategy {
# check for SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE
if [ -z ${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE} ]
then
if [ $(echo "${f_BUY_PRICE_LAST_RATE_DIFF} < ${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}" | bc -l) -ne 0 ]
then
f_SELL="SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE(${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}%) > Last rate (${f_BUY_PRICE_LAST_RATE_DIFF}%)"
fi
fi
}