init
This commit is contained in:
@@ -557,11 +557,12 @@ class Common:
|
|||||||
# 이격도 체크
|
# 이격도 체크
|
||||||
def check_disparity(self, stock, type="daily"):
|
def check_disparity(self, stock, type="daily"):
|
||||||
if type == "weekly":
|
if type == "weekly":
|
||||||
|
|
||||||
if (90 < stock['disparity_avg5'][0] < 97 and 89 < stock['disparity_avg10'][0] < 93.5 and
|
if (90 < stock['disparity_avg5'][0] < 97 and 89 < stock['disparity_avg10'][0] < 93.5 and
|
||||||
99 < stock['disparity_avg20'][0] < 102 and 101 < stock['disparity_avg60'][0] < 106 and
|
99 < stock['disparity_avg20'][0] < 102 and 101 < stock['disparity_avg60'][0] < 106 and
|
||||||
100 < stock['disparity_avg120'][0] < 104.5):
|
100 < stock['disparity_avg120'][0] < 104.5):
|
||||||
return True
|
return True
|
||||||
if (98 < stock['disparity_avg5'][0] < 10.5 and 98 < stock['disparity_avg10'][0] < 100 and
|
if (98 < stock['disparity_avg5'][0] < 100.5 and 98 < stock['disparity_avg10'][0] < 100 and
|
||||||
102 < stock['disparity_avg20'][0] < 104 and 99 < stock['disparity_avg60'][0] < 102 and
|
102 < stock['disparity_avg20'][0] < 104 and 99 < stock['disparity_avg60'][0] < 102 and
|
||||||
97 < stock['disparity_avg120'][0] < 99):
|
97 < stock['disparity_avg120'][0] < 99):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user