init
This commit is contained in:
@@ -522,14 +522,7 @@ class Common:
|
|||||||
c_index = 200
|
c_index = 200
|
||||||
|
|
||||||
max_volume = max(stock['volume'][1:c_index+1])
|
max_volume = max(stock['volume'][1:c_index+1])
|
||||||
if 0 < max_volume < stock['volume'][0] and stock['close'][1] < stock['close'][0]:
|
if 0 < max_volume*2 < stock['volume'][0] and stock['close'][1] < stock['close'][0]:
|
||||||
log = "{:.2f}".format(stock['volume'][0]/max_volume)
|
|
||||||
return True, log
|
|
||||||
|
|
||||||
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]:
|
|
||||||
log = "{:.2f}".format(stock['volume'][0]/max_volume)
|
log = "{:.2f}".format(stock['volume'][0]/max_volume)
|
||||||
return True, log
|
return True, log
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user