analyze 2 analyze
This commit is contained in:
parent
8b5ffad49c
commit
1423fdbe71
@ -119,6 +119,16 @@ function analyze {
|
|||||||
fi
|
fi
|
||||||
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}" ]
|
if [ -n "${f_SELL}" ]
|
||||||
then
|
then
|
||||||
set -x
|
set -x
|
||||||
|
@ -105,17 +105,17 @@ function check_buy_conditions {
|
|||||||
f_BUY=""
|
f_BUY=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ANALYZE
|
# # ANALYZE
|
||||||
if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
|
# if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
|
||||||
then
|
# then
|
||||||
echo "BUY: ${f_BUY}"
|
# echo "BUY: ${f_BUY}"
|
||||||
#echo "${csv_headline},Marketperformance
|
##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_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
|
# f_open_trade=1
|
||||||
#echo "${f_echo_prefix}${f_BUY}" >${g_tmp}/open-${tmpfile}
|
# #echo "${f_echo_prefix}${f_BUY}" >${g_tmp}/open-${tmpfile}
|
||||||
BUY_PRICE=$f_price
|
# BUY_PRICE=$f_price
|
||||||
f_BUY=""
|
# f_BUY=""
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user