This commit is contained in:
2023-05-19 08:02:34 +02:00
parent 7d27642d9a
commit 212b1d088c
4 changed files with 32 additions and 18 deletions

View File

@@ -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