init
This commit is contained in:
@@ -36,7 +36,7 @@ def check_bollinger_bands(symbol, data):
|
|||||||
|
|
||||||
# 과거 10개 봉에서 ALERT_THRESHOLD 아래로 빠진 적이 있는지 체크
|
# 과거 10개 봉에서 ALERT_THRESHOLD 아래로 빠진 적이 있는지 체크
|
||||||
check = False
|
check = False
|
||||||
for i in range(-1, -10, -1):
|
for i in range(-1, -2, -1):
|
||||||
past = data.iloc[i]
|
past = data.iloc[i]
|
||||||
upper_band = past['Upper']
|
upper_band = past['Upper']
|
||||||
lower_band = past['Lower']
|
lower_band = past['Lower']
|
||||||
|
|||||||
Reference in New Issue
Block a user