fixes if no EMA200 data available
This commit is contained in:
parent
a8132e3992
commit
6c0c786c70
@ -166,7 +166,7 @@ services:
|
|||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '1'
|
cpus: '1'
|
||||||
memory: 2048M
|
memory: 512M
|
||||||
|
|
||||||
dabo-calc-levels:
|
dabo-calc-levels:
|
||||||
build:
|
build:
|
||||||
|
@ -25,7 +25,7 @@ do
|
|||||||
g_echo "scoring ECONOMY_${asset}"
|
g_echo "scoring ECONOMY_${asset}"
|
||||||
|
|
||||||
# bullish? bull market?
|
# bullish? bull market?
|
||||||
if g_num_is_higher ${v[ECONOMY_${asset}_15m_close_0]} ${v[ECONOMY_${asset}_1d_ema200_0]}
|
[ -n "${v[ECONOMY_${asset}_1d_ema200_0]}" ] && if g_num_is_higher ${v[ECONOMY_${asset}_15m_close_0]} ${v[ECONOMY_${asset}_1d_ema200_0]}
|
||||||
then
|
then
|
||||||
score 2 "${asset} EMA200 over last 15m close"
|
score 2 "${asset} EMA200 over last 15m close"
|
||||||
else
|
else
|
||||||
@ -55,7 +55,7 @@ do
|
|||||||
g_echo "scoring ECONOMY_${asset}"
|
g_echo "scoring ECONOMY_${asset}"
|
||||||
|
|
||||||
# bullish? bull market?
|
# bullish? bull market?
|
||||||
if g_num_is_higher ${v[ECONOMY_${asset}_15m_close_0]} ${v[ECONOMY_${asset}_1d_ema200_0]}
|
[ -n "${v[ECONOMY_${asset}_1d_ema200_0]}" ] && if g_num_is_higher ${v[ECONOMY_${asset}_15m_close_0]} ${v[ECONOMY_${asset}_1d_ema200_0]}
|
||||||
then
|
then
|
||||||
score -2 "${asset} EMA200 over last 15m close"
|
score -2 "${asset} EMA200 over last 15m close"
|
||||||
else
|
else
|
||||||
@ -85,7 +85,7 @@ do
|
|||||||
g_echo "scoring ${asset}"
|
g_echo "scoring ${asset}"
|
||||||
|
|
||||||
# bullish? bull market?
|
# bullish? bull market?
|
||||||
if g_num_is_higher ${v[${asset}_15m_close_0]} ${v[${asset}_1d_ema200_0]}
|
[ -n "${v[${asset}_1d_ema200_0]}" ] && if g_num_is_higher ${v[${asset}_15m_close_0]} ${v[${asset}_1d_ema200_0]}
|
||||||
then
|
then
|
||||||
score 2 "${asset} EMA200 over last 15m close"
|
score 2 "${asset} EMA200 over last 15m close"
|
||||||
else
|
else
|
||||||
@ -129,7 +129,7 @@ do
|
|||||||
g_echo "scoring ${asset}"
|
g_echo "scoring ${asset}"
|
||||||
|
|
||||||
# bullish? bull market?
|
# bullish? bull market?
|
||||||
if g_num_is_higher ${v[${asset}_15m_close_0]} ${v[${asset}_1d_ema200_0]}
|
[ -n "${v[${asset}_1d_ema200_0]}" ] && if g_num_is_higher ${v[${asset}_15m_close_0]} ${v[${asset}_1d_ema200_0]}
|
||||||
then
|
then
|
||||||
score 2 "${asset} EMA200 over last 15m close"
|
score 2 "${asset} EMA200 over last 15m close"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user