This commit is contained in:
dsyoon
2024-11-13 19:17:55 +09:00
parent d475cf123c
commit 1914c9e183

View File

@@ -228,22 +228,22 @@ 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=[800, 200, 200, 200, 200, 200] row_heights=[200, 200, 200, 200, 200, 800]
) )
for trace in candle_data:
fig.append_trace(trace, 1, 1)
for trace in volume_data: for trace in volume_data:
fig.append_trace(trace, 2, 1) fig.append_trace(trace, 1, 1)
for trace in stochastic_data: for trace in stochastic_data:
fig.append_trace(trace, 3, 1) fig.append_trace(trace, 2, 1)
for trace in macd_data: for trace in macd_data:
fig.append_trace(trace, 4, 1) fig.append_trace(trace, 3, 1)
for trace in rsi_data: for trace in rsi_data:
fig.append_trace(trace, 5, 1) fig.append_trace(trace, 4, 1)
for trace in disparity_data: for trace in disparity_data:
fig.append_trace(trace, 5, 1)
for trace in candle_data:
fig.append_trace(trace, 6, 1) fig.append_trace(trace, 6, 1)
fig.update_layout(height=1800, xaxis_rangeslider_visible=False) fig.update_layout(height=1800, xaxis_rangeslider_visible=False)