more pure bash to speed up things
This commit is contained in:
parent
814f7fcb94
commit
a0362391cd
@ -110,6 +110,7 @@ function check_sell_conditions {
|
|||||||
echo "${result}" >>${g_tmp}/result-${tmpfile}
|
echo "${result}" >>${g_tmp}/result-${tmpfile}
|
||||||
rm -f "${f_TRADE_HIST_FILE}"
|
rm -f "${f_TRADE_HIST_FILE}"
|
||||||
rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
||||||
|
unset f_open_trade
|
||||||
#echo "RESULT: ${result}% (${BUY_PRICE} -> ${current})"
|
#echo "RESULT: ${result}% (${BUY_PRICE} -> ${current})"
|
||||||
echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
||||||
fi
|
fi
|
||||||
@ -138,7 +139,6 @@ function check_sell_conditions_strategy {
|
|||||||
# [ -n "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f6)
|
# [ -n "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f6)
|
||||||
# #if grep -q "buy.${f_strategy_name}.conf" ${f_TRADE_HIST_FILE}
|
# #if grep -q "buy.${f_strategy_name}.conf" ${f_TRADE_HIST_FILE}
|
||||||
# #then
|
# #then
|
||||||
echo "SELL running ${f_strategy}"
|
|
||||||
. "${f_strategy}" || return 0
|
. "${f_strategy}" || return 0
|
||||||
# #fi
|
# #fi
|
||||||
# else
|
# else
|
||||||
|
Loading…
Reference in New Issue
Block a user