f_all_vars

This commit is contained in:
olli 2023-11-02 10:44:47 +01:00
parent d0b5575819
commit 5bed022a96

View File

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