f_all_vars
This commit is contained in:
parent
d0b5575819
commit
5bed022a96
@ -11,7 +11,7 @@ function get_vars_from_csv {
|
|||||||
then
|
then
|
||||||
f_market_performance="-50"
|
f_market_performance="-50"
|
||||||
fi
|
fi
|
||||||
|
f_all_vars="f_market_performance=${f_market_performance}"
|
||||||
|
|
||||||
f_last_line="$(tail -n1 "${f_ASSET_HIST_FILE}"),${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)
|
f_macd_histogram_relation=$(echo "${f_macd_signal_relation}" | cut -d\| -f1)
|
||||||
[ -z "$f_macd_histogram_relation" ] && return 1
|
[ -z "$f_macd_histogram_relation" ] && return 1
|
||||||
f_macd_histogram_signal=$(echo "${f_macd_signal_relation}" | cut -d\| -f2)
|
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
|
# rsi
|
||||||
get_var_from_line rsi5 10
|
get_var_from_line rsi5 10
|
||||||
@ -87,5 +90,7 @@ function get_var_from_line {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
declare -g f_$1="$(echo ${f_last_line_array[$2]})"
|
declare -g f_$1="$(echo ${f_last_line_array[$2]})"
|
||||||
|
f_all_vars="$f_all_vars
|
||||||
|
f_$1=$(echo ${f_last_line_array[$2]})"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user