From 9f3520eb2705aa7192251b87a5e4d823583a0776 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 11 Nov 2023 18:02:43 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/get_vars_from_csv.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index e197552..14ce5a0 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -1,5 +1,7 @@ function get_vars_from_csv { + set -x + f_ASSET_HIST_FILE="$1" if ! [ -s "${f_ASSET_HIST_FILE}" ] then @@ -80,9 +82,7 @@ f_price_trend=${f_price_trend}" # MACD EMA 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 {