more pure bash to speed up things
This commit is contained in:
parent
0da3b1f765
commit
af539ddc21
@ -100,7 +100,7 @@ function analyze {
|
|||||||
# check_sell_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile}
|
# check_sell_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile}
|
||||||
# else
|
# else
|
||||||
#echo "SELL Checks"
|
#echo "SELL Checks"
|
||||||
time check_sell_conditions ${g_tmp}/${tmpfile}
|
check_sell_conditions ${g_tmp}/${tmpfile}
|
||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
# if ! [ -f "${g_tmp}/open-${tmpfile}" ]
|
# if ! [ -f "${g_tmp}/open-${tmpfile}" ]
|
||||||
@ -110,7 +110,7 @@ function analyze {
|
|||||||
# then
|
# then
|
||||||
# check_buy_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile}
|
# check_buy_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile}
|
||||||
# else
|
# else
|
||||||
time check_buy_conditions ${g_tmp}/${tmpfile}
|
check_buy_conditions ${g_tmp}/${tmpfile}
|
||||||
# fi
|
# fi
|
||||||
fi
|
fi
|
||||||
## Chart Part
|
## Chart Part
|
||||||
|
@ -19,7 +19,7 @@ function check_buy_conditions {
|
|||||||
# get asset vars
|
# get asset vars
|
||||||
if [ -n "${BOT}" ]
|
if [ -n "${BOT}" ]
|
||||||
then
|
then
|
||||||
get_vars_from_csv "${f_ASSET_HIST_FILE}" || return 1
|
time get_vars_from_csv "${f_ASSET_HIST_FILE}" || return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### from here: check for defined state to buy
|
### from here: check for defined state to buy
|
||||||
|
@ -16,6 +16,7 @@ function get_vars_from_csv {
|
|||||||
# read last 4 lines in array if not given
|
# read last 4 lines in array if not given
|
||||||
if [ -z "${f_last_lines_array}" ]
|
if [ -z "${f_last_lines_array}" ]
|
||||||
then
|
then
|
||||||
|
echo "open file ${f_ASSET_HIST_FILE}"
|
||||||
mapfile -t f_last_lines_array < <(tail -n4 "${f_ASSET_HIST_FILE}")
|
mapfile -t f_last_lines_array < <(tail -n4 "${f_ASSET_HIST_FILE}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user