optical fixes
This commit is contained in:
@@ -49,8 +49,6 @@ ${f_last_line},${f_market_performance}"
|
||||
then
|
||||
echo "${f_last_line},${f_ASSET}" >>trade.log
|
||||
|
||||
f_BUY="${f_echo_prefix}All BUY conditions met!!!
|
||||
${f_BUY}"
|
||||
g_echo_note "${f_BUY}"
|
||||
|
||||
# calculate quantity from balance for potentially invest
|
||||
@@ -94,10 +92,10 @@ ${f_BUY}"
|
||||
# ANALYZE
|
||||
if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
|
||||
then
|
||||
echo "BUY: ${f_echo_prefix}${f_BUY}"
|
||||
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,
|
||||
echo "$f_BUY" >${g_tmp}/open-${tmpfile}
|
||||
echo "${f_echo_prefix}${f_BUY}" >${g_tmp}/open-${tmpfile}
|
||||
BUY_PRICE=$current
|
||||
f_BUY=""
|
||||
fi
|
||||
@@ -125,7 +123,7 @@ function check_buy_conditions_strategy {
|
||||
# Check market-performance
|
||||
if [ $(echo "${f_market_performance} > ${GOOD_MARKET_PERFORMANCE_INDEX}" | bc -l) -eq 0 ]
|
||||
then
|
||||
g_echo_note "${f_echo_prefix}BUY market performance ${f_market_performance}% looks bad - Dont buy anything"
|
||||
#g_echo_note "${f_echo_prefix}BUY market performance ${f_market_performance}% looks bad - Dont buy anything"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user