init
This commit is contained in:
@@ -506,6 +506,23 @@ class Common:
|
||||
return True
|
||||
return False
|
||||
|
||||
def check_env_upper_volume(self, stock):
|
||||
c_index = 200
|
||||
check = True
|
||||
max_volume = max(stock['volume'][1:c_index + 1])
|
||||
if 0 < max_volume < stock['volume'][0] and stock['close'][1] < stock['close'][0]:
|
||||
check = True
|
||||
|
||||
c_index = 20
|
||||
sum_volume = sum(stock['volume'][1:c_index + 1])
|
||||
avg_volume = sum_volume / c_index
|
||||
if (avg_volume * 5) < stock['volume'][0] and stock['close'][1] < stock['close'][0]:
|
||||
check = True
|
||||
|
||||
if check and stock['close'][1] < stock['envelope_upper'][1] and stock['envelope_upper'][0] < stock['close'][0]:
|
||||
return True
|
||||
return False
|
||||
|
||||
def check_mv_5_20(self, stock):
|
||||
if stock['avg5'][1] < stock['avg20'][1] and stock['avg20'][0] < stock['avg5'][0]:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user