This commit is contained in:
dosangyoon
2021-10-19 00:06:23 +09:00
parent 6a463bb1ad
commit 3edadf5651
4 changed files with 11 additions and 5 deletions

View File

@@ -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