init
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user