fix SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE
This commit is contained in:
parent
36029642f5
commit
2e01271903
@ -252,9 +252,12 @@ 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} ]
|
||||||
|
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
|
||||||
f_SELL="SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE(${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}%) > Last rate (${f_BUY_PRICE_LAST_RATE_DIFF}%)"
|
f_SELL="SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE(${SELL_PERCENTAGE_FROM_LAST_PURCHASE_NEGATIVE}%) > Last rate (${f_BUY_PRICE_LAST_RATE_DIFF}%)"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user