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]})" }