init
This commit is contained in:
@@ -128,7 +128,13 @@ class Simulation:
|
||||
fig.append_trace(trace, 4, 1)
|
||||
#fig.update_xaxes(nticks=5)
|
||||
#fig.update_layout(height=1800, title=stock_code + "_" + given_day, xaxis_rangeslider_visible=False)
|
||||
fig.update_layout(height=1800, title=stock_code + "_" + given_day)
|
||||
|
||||
df = pd.DataFrame(bsLine)
|
||||
df = df.fillna(-1)
|
||||
buy_count = len(df.loc[df["buy"] > 0])
|
||||
sell_count = len(df.loc[df["sell"] > 0])
|
||||
|
||||
fig.update_layout(height=1800, title=stock_code + "_" + given_day + "_" + str(buy_count)+","+str(sell_count))
|
||||
fig.show()
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user