force minimum 15 minutes (900 seconds) timeframe for EMA/MACD calculations

This commit is contained in:
olli 2023-05-15 15:48:58 +02:00
parent 436dfe602e
commit d54815b4f8

View File

@ -12,7 +12,6 @@ function get_ema {
if [ $(echo "${INTERVAL} < 900" | bc -l) -ne 0 ]
then
f_period=$(echo "${f_period}*(900/${INTERVAL})" | bc -l | sed 's/\..*//')
g_echo "ATTENTION!!!! Period lower then 15 minutes - correcting to $f_period"
fi
# calculate EMA if last EMA is given