better analyze.sh output
This commit is contained in:
parent
c1de6d9485
commit
96f7e0c20e
@ -95,8 +95,8 @@ ${f_BUY}"
|
|||||||
if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
|
if [ -n "$f_BUY" ] && [ -z "${BOT}" ]
|
||||||
then
|
then
|
||||||
echo "BUY: ${f_echo_prefix}${f_BUY}"
|
echo "BUY: ${f_echo_prefix}${f_BUY}"
|
||||||
echo "${csv_headline}
|
echo "${csv_headline},Marketperformance
|
||||||
${f_last_line}" | cut -d, -f 2-21 | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
|
${f_last_line},${f_market_performance}" | cut -d, -f 2-22 | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
|
||||||
echo "$f_BUY" >${g_tmp}/open-${tmpfile}
|
echo "$f_BUY" >${g_tmp}/open-${tmpfile}
|
||||||
BUY_PRICE=$current
|
BUY_PRICE=$current
|
||||||
f_BUY=""
|
f_BUY=""
|
||||||
|
@ -77,8 +77,8 @@ function check_sell_conditions {
|
|||||||
if [ -n "${f_SELL}" ] && [ -z "${BOT}" ]
|
if [ -n "${f_SELL}" ] && [ -z "${BOT}" ]
|
||||||
then
|
then
|
||||||
echo "SELL: $(tail -n1 ${f_ASSET_HIST_FILE} | cut -d, -f1)"
|
echo "SELL: $(tail -n1 ${f_ASSET_HIST_FILE} | cut -d, -f1)"
|
||||||
echo "${csv_headline}
|
echo "${csv_headline},Marketperformace
|
||||||
${f_last_line}" | cut -d, -f 2-21 | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
|
${f_last_line},${f_market_performance}" | cut -d, -f 2-222 | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s,
|
||||||
echo "${f_SELL}"
|
echo "${f_SELL}"
|
||||||
result=$(g_percentage-diff ${BUY_PRICE} ${current})
|
result=$(g_percentage-diff ${BUY_PRICE} ${current})
|
||||||
result=$(echo "${result}-${FEE}" | bc | sed 's/^\./0./; s/^-\./-0./')
|
result=$(echo "${result}-${FEE}" | bc | sed 's/^\./0./; s/^-\./-0./')
|
||||||
|
Loading…
Reference in New Issue
Block a user