init
This commit is contained in:
@@ -52,8 +52,7 @@ class Simulation (HTS):
|
||||
'avg6': 'float',
|
||||
'avg9': 'float',
|
||||
'avg12': 'float',
|
||||
'avg27': 'float',
|
||||
'avg54': 'float',
|
||||
'avg20': 'float',
|
||||
'fast_k': 'float',
|
||||
'slow_k': 'float',
|
||||
'slow_d': 'float',
|
||||
@@ -89,8 +88,7 @@ class Simulation (HTS):
|
||||
avg6 = go.Scatter(x=data['date'], y=data["avg6"], name="avg6", line_color='#089B5B')
|
||||
avg9 = go.Scatter(x=data['date'], y=data["avg9"], name="avg9", line_color='#ff00ff')
|
||||
avg12 = go.Scatter(x=data['date'], y=data["avg12"], name="avg12", line_color='#1469F4')
|
||||
avg27 = go.Scatter(x=data['date'], y=data["avg27"], name="avg27", line_color='#000000')
|
||||
avg54 = go.Scatter(x=data['date'], y=data["avg54"], name="avg54", line_color='#008000')
|
||||
avg20 = go.Scatter(x=data['date'], y=data["avg20"], name="avg20", line_color='#000000')
|
||||
|
||||
candle_stick = go.Candlestick(x=data['date'], open=data['open'], high=data['high'], low=data['low'], close=data['close'], increasing_line_color='red', decreasing_line_color='blue')
|
||||
volume_line = go.Scatter(x=data['date'], y=data["volume"], mode='lines', name='volume')
|
||||
@@ -106,7 +104,7 @@ class Simulation (HTS):
|
||||
rsi_line = go.Scatter(x=data['date'], y=data["rsi"], mode='lines', name='rsi')
|
||||
rsis_line = go.Scatter(x=data['date'], y=data["rsis"], mode='lines', name='rsis')
|
||||
|
||||
candle_data = [candle_stick, upper, lower, avg3, avg6, avg9, avg12, avg27, avg54, buy_check, sell_check]
|
||||
candle_data = [candle_stick, upper, lower, avg3, avg6, avg9, avg12, avg20, buy_check, sell_check]
|
||||
volume_data = [volume_line]
|
||||
macd_data = [macd_line, macd_s_line, macd_o_line]
|
||||
stochastic_data = [slow_k_line, slow_d_line]
|
||||
@@ -184,12 +182,8 @@ if __name__ == "__main__":
|
||||
|
||||
# to check bying
|
||||
stock_codes = {
|
||||
"252670": [
|
||||
'20220510', '20220511', '20220512',
|
||||
'20220610', '20220613', '20220614',
|
||||
'20220708', '20220711', '20220712',
|
||||
'20220810', '20220811', '20220812'],
|
||||
#"122630": ['20220611', '20220612', '20220613', '20220614'],
|
||||
"252670": ['20220822', '20220823', '20220824', '20220825', '20220826'],
|
||||
#"122630": ['20220822', '20220823', '20220824', '20220825', '20220826']
|
||||
}
|
||||
|
||||
method = "rule" # "rule", "ml", "answer"
|
||||
|
||||
Reference in New Issue
Block a user