analyue to analyze.sh
This commit is contained in:
parent
d502a4e28b
commit
fd11f90cd9
@ -119,18 +119,18 @@ function analyze {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${f_SELL}" ]
|
#if [ -n "${f_SELL}" ]
|
||||||
then
|
#then
|
||||||
echo "SELL: ${f_date} ${f_SELL}"
|
# echo "SELL: ${f_date} ${f_SELL}"
|
||||||
g_percentage-diff ${BUY_PRICE} ${f_price}
|
# g_percentage-diff ${BUY_PRICE} ${f_price}
|
||||||
g_calc "${g_percentage_diff_result}-${FEE}"
|
# g_calc "${g_percentage_diff_result}-${FEE}"
|
||||||
result=${g_calc_result}
|
# result=${g_calc_result}
|
||||||
echo "${result}" >>${g_tmp}/result-${tmpfile}
|
# echo "${result}" >>${g_tmp}/result-${tmpfile}
|
||||||
rm -f "${f_TRADE_HIST_FILE}"
|
# rm -f "${f_TRADE_HIST_FILE}"
|
||||||
rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
# rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
||||||
unset f_open_trade
|
# unset f_open_trade
|
||||||
echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
# echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
|
||||||
## Chart Part
|
## Chart Part
|
||||||
|
@ -99,24 +99,19 @@ function check_sell_conditions {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# # ANALYZE
|
# ANALYZE
|
||||||
# if [ -n "${f_SELL}" ] && [ -z "${BOT}" ]
|
if [ -n "${f_SELL}" ] && [ -z "${BOT}" ]
|
||||||
# then
|
then
|
||||||
# echo "SELL: ${f_date} ${f_SELL}"
|
echo "SELL: ${f_date} ${f_SELL}"
|
||||||
## echo "${csv_headline},Marketperformace
|
g_percentage-diff ${BUY_PRICE} ${f_price}
|
||||||
##${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,
|
g_calc "${g_percentage_diff_result}-${FEE}"
|
||||||
## echo "${f_SELL}"
|
result=${g_calc_result}
|
||||||
# g_percentage-diff ${BUY_PRICE} ${f_price}
|
echo "${result}" >>${g_tmp}/result-${tmpfile}
|
||||||
# #result=${g_percentage_diff_result}
|
rm -f "${f_TRADE_HIST_FILE}"
|
||||||
# g_calc "${g_percentage_diff_result}-${FEE}"
|
rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
||||||
# result=${g_calc_result}
|
unset f_open_trade
|
||||||
# echo "${result}" >>${g_tmp}/result-${tmpfile}
|
echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
||||||
# rm -f "${f_TRADE_HIST_FILE}"
|
fi
|
||||||
# rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
|
||||||
# unset f_open_trade
|
|
||||||
# #echo "RESULT: ${result}% (${BUY_PRICE} -> ${current})"
|
|
||||||
# echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user