ema800 workaround

This commit is contained in:
olli 2023-11-27 21:24:07 +01:00
parent a450af5adf
commit f0028792b4

View File

@ -133,9 +133,12 @@ f_macd_histogram_signal=${f_macd_histogram_signal}"
function get_var_from_line { function get_var_from_line {
if [ -z "${f_last_line_array[$2]}" ] if [ -z "${f_last_line_array[$2]}" ]
then then
g_echo_note "${f_ASSET_HIST_FILE}: Didn't get $1 in position $2"
declare -g f_$1=0 declare -g f_$1=0
[[ "$1" =~ ^ema800$ ]] || f_empty_var=1 if ! [[ "$1" =~ ^ema800$ ]]
then
g_echo_note "${f_ASSET_HIST_FILE}: Didn't get $1 in position $2"
f_empty_var=1
fi
else else
#declare -g f_$1="$(echo ${f_last_line_array[$2]})" #declare -g f_$1="$(echo ${f_last_line_array[$2]})"
declare -g f_$1="${f_last_line_array[$2]}" declare -g f_$1="${f_last_line_array[$2]}"