This commit is contained in:
olli 2023-11-26 18:07:04 +01:00
parent f0abb1f63c
commit 6f312c5f30
2 changed files with 11 additions and 12 deletions

View File

@ -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

View File

@ -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}"