more pure bash to speed up things

This commit is contained in:
olli 2023-11-23 10:24:24 +01:00
parent 2a0fca0541
commit ed03be671e
2 changed files with 2 additions and 5 deletions

View File

@ -100,7 +100,7 @@ function analyze {
# check_sell_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile}
# else
#echo "SELL Checks"
check_sell_conditions ${g_tmp}/${tmpfile}
time check_sell_conditions ${g_tmp}/${tmpfile}
# fi
# fi
# if ! [ -f "${g_tmp}/open-${tmpfile}" ]
@ -110,7 +110,7 @@ function analyze {
# then
# check_buy_conditions ${g_tmp}/${tmpfile} >>${g_tmp}/output-${tmpfile}
# else
check_buy_conditions ${g_tmp}/${tmpfile}
time check_buy_conditions ${g_tmp}/${tmpfile}
# fi
fi
## Chart Part

View File

@ -1,7 +1,5 @@
function get_vars_from_csv {
set -x
f_ASSET_HIST_FILE="$1"
if ! [ -s "${f_ASSET_HIST_FILE}" ]
then
@ -126,7 +124,6 @@ f_macd_histogram_signal=${f_macd_histogram_signal}"
# Coingecko price
get_var_from_line coingecko_price 40
set +x
}