init
This commit is contained in:
@@ -253,10 +253,10 @@ if __name__ == "__main__":
|
||||
#"122630": ['20230930'],
|
||||
#"122630": ['20210901','20210902','20210903','20210906','20231012','20231013']
|
||||
#"122630": ['20210901', '20210902', '20210903', '20210906', '20210907', '20210908', '20210909', '20210910', '20210913', '20210914', '20210915', '20210916', '20210917', '20210923', '20210924', '20210927', '20210928', '20210929', '20210930', '20211001', '20211005','20231012','20231013'],
|
||||
"252670": ['20231012', '20231013'],
|
||||
"251340": ['20231012', '20231013'],
|
||||
"122630": ['20231012', '20231013'],
|
||||
"233740": ['20231012', '20231013'],
|
||||
"233740": ['20231016'],
|
||||
"252670": ['20231016'],
|
||||
"251340": ['20231016'],
|
||||
"122630": ['20231016']
|
||||
}
|
||||
#simulation.simulate(stock_codes)
|
||||
simulation.simulate(stock_codes)
|
||||
|
||||
@@ -256,6 +256,7 @@ class BuySellChecker:
|
||||
if i > 30 and data['macd'][i] < min_macd + (-min_macd * 0.4):
|
||||
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]:
|
||||
|
||||
Reference in New Issue
Block a user