From 5bed022a96b3750008737d425b72868cf957261b Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 2 Nov 2023 10:44:47 +0100 Subject: [PATCH] f_all_vars --- dabo/functions/get_vars_from_csv.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 0235042..db03864 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -11,7 +11,7 @@ function get_vars_from_csv { then f_market_performance="-50" fi - + f_all_vars="f_market_performance=${f_market_performance}" f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${f_market_performance}" @@ -34,6 +34,9 @@ function get_vars_from_csv { f_macd_histogram_relation=$(echo "${f_macd_signal_relation}" | cut -d\| -f1) [ -z "$f_macd_histogram_relation" ] && return 1 f_macd_histogram_signal=$(echo "${f_macd_signal_relation}" | cut -d\| -f2) + f_all_vars="${f_all_vars} +f_macd_histogram_relation=${f_macd_histogram_relation} +f_macd_histogram_signal=${f_macd_histogram_signal}" # rsi get_var_from_line rsi5 10 @@ -87,5 +90,7 @@ function get_var_from_line { return 1 fi declare -g f_$1="$(echo ${f_last_line_array[$2]})" + f_all_vars="$f_all_vars +f_$1=$(echo ${f_last_line_array[$2]})" }