fixes
This commit is contained in:
@@ -15,8 +15,8 @@ function get_rsi_indicator {
|
||||
local f_period_sum=$(tail -n${f_period} "${f_hist_file}" | cut -d, -f2 | grep "^[0-9]" | wc -l)
|
||||
if ! [ ${f_period_sum} -ge ${f_period} ]
|
||||
then
|
||||
g_echo_note "${FUNCNAME} $@: Not enough data - waiting for more values. (${f_period} needed; ${f_period_sum} given)"
|
||||
echo -n ",${f_rsi}" >>"${f_hist_file}"
|
||||
g_echo_note "${FUNCNAME} $@: Not enough data - waiting for more values and defaulting to 50. (${f_period} needed; ${f_period_sum} given)"
|
||||
echo -n ",50" >>"${f_hist_file}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user