This commit is contained in:
dsyoon
2024-11-13 19:19:32 +09:00
parent 1914c9e183
commit 5c97e3edc2

View File

@@ -228,20 +228,20 @@ class AnalyzerSqlite:
fig = subplots.make_subplots( fig = subplots.make_subplots(
rows=6, cols=1, rows=6, cols=1,
subplot_titles=("거래량", "스토캐스틱", "MACD", "RSI", "이격도", '캔들'), subplot_titles=("스토캐스틱", "MACD", "RSI", "이격도", "거래량", '캔들'),
# specs=[[{}], [{}], [{}], [{}], [{}], [{}]], # specs=[[{}], [{}], [{}], [{}], [{}], [{}]],
shared_xaxes=True, horizontal_spacing=0.03, vertical_spacing=0.01, shared_xaxes=True, horizontal_spacing=0.03, vertical_spacing=0.01,
row_heights=[200, 200, 200, 200, 200, 800] row_heights=[200, 200, 200, 200, 200, 800]
) )
for trace in volume_data:
fig.append_trace(trace, 1, 1)
for trace in stochastic_data: for trace in stochastic_data:
fig.append_trace(trace, 2, 1) fig.append_trace(trace, 1, 1)
for trace in macd_data: for trace in macd_data:
fig.append_trace(trace, 3, 1) fig.append_trace(trace, 2, 1)
for trace in rsi_data: for trace in rsi_data:
fig.append_trace(trace, 4, 1) fig.append_trace(trace, 3, 1)
for trace in disparity_data: for trace in disparity_data:
fig.append_trace(trace, 4, 1)
for trace in volume_data:
fig.append_trace(trace, 5, 1) fig.append_trace(trace, 5, 1)
for trace in candle_data: for trace in candle_data:
fig.append_trace(trace, 6, 1) fig.append_trace(trace, 6, 1)