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