This commit is contained in:
dsyoon
2022-08-11 23:56:43 +09:00
parent c310e0a89a
commit 95f68cab7b
2 changed files with 19 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import time
from math import nan
import pandas as pd
import plotly.graph_objects as go
@@ -68,7 +69,7 @@ class Simulation (HTS):
buy_line[i] = nan
buy_size.append(0)
else:
buy_colors.append("#DA8913")
buy_colors.append("#00ced1")
buy_size.append(10 + (5 * buy_weight_line[i]))
sell_colors = []
@@ -77,7 +78,7 @@ class Simulation (HTS):
sell_colors.append("#ffffff")
sell_line[i] = nan
else:
sell_colors.append("#00ced1")
sell_colors.append("#D87D0F")
# 그래프를 설정한다.
buy_check = go.Scatter(x=data['date'], y=buy_line, mode='markers', name="buy", marker=dict(size=buy_size, color=buy_colors, line_width=0))