more pure bash to speed up things

This commit is contained in:
olli 2023-11-11 18:02:43 +01:00
parent 0a079d72cc
commit 9f3520eb27

View File

@ -1,5 +1,7 @@
function get_vars_from_csv {
set -x
f_ASSET_HIST_FILE="$1"
if ! [ -s "${f_ASSET_HIST_FILE}" ]
then
@ -81,8 +83,6 @@ f_price_trend=${f_price_trend}"
get_var_from_line ema12 4
get_var_from_line ema26 5
set -x
# MACD
get_var_from_line macd_histogram 8
get_var_from_line macd_signal_relation 9
@ -92,7 +92,6 @@ f_price_trend=${f_price_trend}"
f_all_vars="${f_all_vars}
f_macd_histogram_relation=${f_macd_histogram_relation}
f_macd_histogram_signal=${f_macd_histogram_signal}"
set +x
# rsi
get_var_from_line rsi5 10
@ -137,8 +136,6 @@ f_macd_histogram_signal=${f_macd_histogram_signal}"
# Coingecko price
get_var_from_line coingecko_price 40a
set | grep f_ 1>&2
}
function get_var_from_line {