more pure bash to speed up things
This commit is contained in:
parent
2a0fca0541
commit
ed03be671e
@ -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"
|
||||||
check_sell_conditions ${g_tmp}/${tmpfile}
|
time 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
|
||||||
check_buy_conditions ${g_tmp}/${tmpfile}
|
time check_buy_conditions ${g_tmp}/${tmpfile}
|
||||||
# fi
|
# fi
|
||||||
fi
|
fi
|
||||||
## Chart Part
|
## Chart Part
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
function get_vars_from_csv {
|
function get_vars_from_csv {
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
f_ASSET_HIST_FILE="$1"
|
f_ASSET_HIST_FILE="$1"
|
||||||
if ! [ -s "${f_ASSET_HIST_FILE}" ]
|
if ! [ -s "${f_ASSET_HIST_FILE}" ]
|
||||||
then
|
then
|
||||||
@ -126,7 +124,6 @@ f_macd_histogram_signal=${f_macd_histogram_signal}"
|
|||||||
# Coingecko price
|
# Coingecko price
|
||||||
get_var_from_line coingecko_price 40
|
get_var_from_line coingecko_price 40
|
||||||
|
|
||||||
set +x
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user