analyze 2 analyze

This commit is contained in:
olli 2023-11-28 17:10:57 +01:00
parent 8b5ffad49c
commit 1423fdbe71
2 changed files with 21 additions and 11 deletions

View File

@ -119,6 +119,16 @@ function analyze {
fi
fi
if [ -n "$f_BUY" ]
then
set -x
echo "BUY: ${f_BUY}"
f_open_trade=1
BUY_PRICE=$f_price
f_BUY=""
set +x
fi
if [ -n "${f_SELL}" ]
then
set -x

View File

@ -105,17 +105,17 @@ function check_buy_conditions {
f_BUY=""
fi
# ANALYZE
if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
then
echo "BUY: ${f_BUY}"
#echo "${csv_headline},Marketperformance
#${f_last_line}" | cut -d, -f 2-22 | perl -pe 's/([0-9].[0-9][0-9][0-9][0-9][0-9][0-9])[0-9]+/$1/g' | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
f_open_trade=1
#echo "${f_echo_prefix}${f_BUY}" >${g_tmp}/open-${tmpfile}
BUY_PRICE=$f_price
f_BUY=""
fi
# # ANALYZE
# if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
# then
# echo "BUY: ${f_BUY}"
##echo "${csv_headline},Marketperformance
##${f_last_line}" | cut -d, -f 2-22 | perl -pe 's/([0-9].[0-9][0-9][0-9][0-9][0-9][0-9])[0-9]+/$1/g' | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
# f_open_trade=1
# #echo "${f_echo_prefix}${f_BUY}" >${g_tmp}/open-${tmpfile}
# BUY_PRICE=$f_price
# f_BUY=""
# fi