analyze 2 analyze
This commit is contained in:
parent
fd11f90cd9
commit
8b5ffad49c
@ -119,18 +119,20 @@ function analyze {
|
||||
fi
|
||||
fi
|
||||
|
||||
#if [ -n "${f_SELL}" ]
|
||||
#then
|
||||
# echo "SELL: ${f_date} ${f_SELL}"
|
||||
# g_percentage-diff ${BUY_PRICE} ${f_price}
|
||||
# g_calc "${g_percentage_diff_result}-${FEE}"
|
||||
# result=${g_calc_result}
|
||||
# echo "${result}" >>${g_tmp}/result-${tmpfile}
|
||||
# rm -f "${f_TRADE_HIST_FILE}"
|
||||
# rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
||||
# unset f_open_trade
|
||||
# echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
||||
#fi
|
||||
if [ -n "${f_SELL}" ]
|
||||
then
|
||||
set -x
|
||||
echo "SELL: ${f_date} ${f_SELL}"
|
||||
g_percentage-diff ${BUY_PRICE} ${f_price}
|
||||
g_calc "${g_percentage_diff_result}-${FEE}"
|
||||
result=${g_calc_result}
|
||||
echo "${result}" >>${g_tmp}/result-${tmpfile}
|
||||
rm -f "${f_TRADE_HIST_FILE}"
|
||||
rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
||||
unset f_open_trade
|
||||
echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
||||
set +x
|
||||
fi
|
||||
|
||||
|
||||
## Chart Part
|
||||
|
@ -99,19 +99,19 @@ function check_sell_conditions {
|
||||
fi
|
||||
fi
|
||||
|
||||
# ANALYZE
|
||||
if [ -n "${f_SELL}" ] && [ -z "${BOT}" ]
|
||||
then
|
||||
echo "SELL: ${f_date} ${f_SELL}"
|
||||
g_percentage-diff ${BUY_PRICE} ${f_price}
|
||||
g_calc "${g_percentage_diff_result}-${FEE}"
|
||||
result=${g_calc_result}
|
||||
echo "${result}" >>${g_tmp}/result-${tmpfile}
|
||||
rm -f "${f_TRADE_HIST_FILE}"
|
||||
rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
||||
unset f_open_trade
|
||||
echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
||||
fi
|
||||
# # ANALYZE
|
||||
# if [ -n "${f_SELL}" ] && [ -z "${BOT}" ]
|
||||
# then
|
||||
# echo "SELL: ${f_date} ${f_SELL}"
|
||||
# g_percentage-diff ${BUY_PRICE} ${f_price}
|
||||
# g_calc "${g_percentage_diff_result}-${FEE}"
|
||||
# result=${g_calc_result}
|
||||
# echo "${result}" >>${g_tmp}/result-${tmpfile}
|
||||
# rm -f "${f_TRADE_HIST_FILE}"
|
||||
# rm -f "${f_TRADE_HIST_FILE_INTERIM}"
|
||||
# unset f_open_trade
|
||||
# echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
|
||||
# fi
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user