init
This commit is contained in:
@@ -256,14 +256,15 @@ class BuySellChecker:
|
||||
if i > 30 and data['macd'][i] < min_macd + (-min_macd * 0.4):
|
||||
buy, weight = data['close'][i], 1
|
||||
"""
|
||||
if stock_code == '252670' or stock_code == '251340':
|
||||
if data['macd'][i] < -4:
|
||||
if data['open'][i - 1] < data['close'][i - 1] and data['volume'][i - 1] < data['volume'][i]:
|
||||
buy, weight = data['close'][i], 1
|
||||
elif stock_code == '122630' or stock_code == '233740':
|
||||
if data['macd'][i] < -10:
|
||||
if data['open'][i - 1] < data['close'][i - 1] and data['volume'][i - 1] < data['volume'][i]:
|
||||
buy, weight = data['close'][i], 1
|
||||
if 10 < int(data.index[i].strftime('%H')):
|
||||
if stock_code == '252670' or stock_code == '251340':
|
||||
if data['macd'][i] < -4:
|
||||
if data['open'][i - 1] < data['close'][i - 1] and data['volume'][i - 1] < data['volume'][i]:
|
||||
buy, weight = data['close'][i], 1
|
||||
elif stock_code == '122630' or stock_code == '233740':
|
||||
if data['macd'][i] < -10:
|
||||
if data['open'][i - 1] < data['close'][i - 1] and data['volume'][i - 1] < data['volume'][i]:
|
||||
buy, weight = data['close'][i], 1
|
||||
|
||||
return buy, weight
|
||||
|
||||
|
||||
Reference in New Issue
Block a user