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 ]
|
if [ $(echo "${INTERVAL} < 900" | bc -l) -ne 0 ]
|
||||||
then
|
then
|
||||||
f_period=$(echo "${f_period}*(900/${INTERVAL})" | bc -l | sed 's/\..*//')
|
f_period=$(echo "${f_period}*(900/${INTERVAL})" | bc -l | sed 's/\..*//')
|
||||||
g_echo "ATTENTION!!!! Period lower then 15 minutes - correcting to $f_period"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# calculate EMA if last EMA is given
|
# calculate EMA if last EMA is given
|
||||||
|
Loading…
Reference in New Issue
Block a user