analyze 2 analyze
This commit is contained in:
parent
9c954c88f0
commit
e44461d321
@ -101,7 +101,6 @@ function analyze {
|
|||||||
g_num_valid_number "${f_market_performance}" >/dev/null 2>&1 || f_market_performance=0
|
g_num_valid_number "${f_market_performance}" >/dev/null 2>&1 || f_market_performance=0
|
||||||
|
|
||||||
|
|
||||||
echo "=== OPEN TRADE: ${f_open_trade}"
|
|
||||||
if [ -n "${f_open_trade}" ]
|
if [ -n "${f_open_trade}" ]
|
||||||
then
|
then
|
||||||
if [ "${ANALYZE_VERBOSE}" -eq "0" ]
|
if [ "${ANALYZE_VERBOSE}" -eq "0" ]
|
||||||
@ -118,7 +117,6 @@ function analyze {
|
|||||||
check_buy_conditions ${g_tmp}/${tmpfile} #| tee -a ${g_tmp}/output-${tmpfile}
|
check_buy_conditions ${g_tmp}/${tmpfile} #| tee -a ${g_tmp}/output-${tmpfile}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "=== END "
|
|
||||||
|
|
||||||
if [ -n "${f_BUY}" ]
|
if [ -n "${f_BUY}" ]
|
||||||
then
|
then
|
||||||
@ -128,18 +126,18 @@ function analyze {
|
|||||||
unset f_BUY
|
unset f_BUY
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user