strategy sell signal

This commit is contained in:
olli 2023-10-27 13:36:44 +02:00
parent 7b61b62fdb
commit 858da38c22

View File

@ -146,6 +146,13 @@ function check_sell_conditions_strategy {
fi fi
[ -n "${BOT}" ] && g_echo_note "${f_echo_prefix}Running SELL checks" [ -n "${BOT}" ] && g_echo_note "${f_echo_prefix}Running SELL checks"
# Check sell signal from strategy
if [ -n "${f_do_sell}" ]
then
$f_SELL="Strategy sell signal: ${f_do_sell}"
return 0
fi
# check if the result (profit/loss until now) is lowering and sell if too low () # check if the result (profit/loss until now) is lowering and sell if too low ()
if [ -f ${f_TRADE_HIST_FILE_INTERIM} ] if [ -f ${f_TRADE_HIST_FILE_INTERIM} ]
then then