fix on sell strategy load in bot
This commit is contained in:
parent
e9f4a07ff0
commit
3ed741f1be
@ -134,7 +134,8 @@ function check_sell_conditions_strategy {
|
|||||||
# run strategy
|
# run strategy
|
||||||
if [ -s "${f_strategy}" ]
|
if [ -s "${f_strategy}" ]
|
||||||
then
|
then
|
||||||
local f_strategy_name=$(echo ${f_strategy} | cut -d. -f2)
|
[ -z "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f2)
|
||||||
|
[ -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
|
||||||
. "${f_strategy}" || return 0
|
. "${f_strategy}" || return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user