force minimum 15 minutes (900 seconds) timeframe for EMA/MACD calculations
This commit is contained in:
parent
436dfe602e
commit
d54815b4f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user