diff --git a/dabo/analyze.sh b/dabo/analyze.sh index eb4b419..abf034e 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -97,23 +97,23 @@ function analyze { #if [ -f "${g_tmp}/open-${tmpfile}" ] if [ -n "${f_open_trade}" ] then -# if [ "${ANALYZE_VERBOSE}" -eq "0" ] -# then -# check_sell_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile} -# else + if [ "${ANALYZE_VERBOSE}" -eq "0" ] + then + check_sell_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile} + else #echo "SELL Checks" check_sell_conditions ${g_tmp}/${tmpfile} -# fi + fi # fi # if ! [ -f "${g_tmp}/open-${tmpfile}" ] else # then -# if [ "${ANALYZE_VERBOSE}" -eq "0" ] -# then -# check_buy_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile} -# else - check_buy_conditions ${g_tmp}/${tmpfile} -# fi + if [ "${ANALYZE_VERBOSE}" -eq "0" ] + then + check_buy_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile} + else + check_buy_conditions ${g_tmp}/${tmpfile} + fi fi ## Chart Part local f_intrade=0 diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index 71fc7e0..3d2843f 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -106,7 +106,6 @@ function check_sell_conditions { # echo "${csv_headline},Marketperformace #${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_SELL}" - echo "g_percentage-diff ${BUY_PRICE} ${f_price}" g_percentage-diff ${BUY_PRICE} ${f_price} #result=${g_percentage_diff_result} g_calc "${g_percentage_diff_result}-${FEE}"