Spaces:
Sleeping
Sleeping
alexaxbreadbytes
commited on
Commit
•
9748890
1
Parent(s):
a06fbb9
legend labels updated
Browse files
app.py
CHANGED
@@ -528,11 +528,11 @@ def runapp() -> None:
|
|
528 |
fig.add_trace(
|
529 |
go.Scatter(x=dfdata['Exit Date'], y=np.round(dfdata['Cumulative P/L'].values,2), line_shape='spline',
|
530 |
line = {'smoothing': .7, 'color' : 'rgba(90, 223, 137, 1)'},
|
531 |
-
name='
|
532 |
)
|
533 |
buyhold = (principal_balance/dfdata['Buy Price'][dfdata.index[0]])*(dfdata['Buy Price']-dfdata['Buy Price'][dfdata.index[0]])
|
534 |
fig.add_trace(go.Scatter(x=dfdata['Exit Date'], y=np.round(buyhold.values,2), line_shape='spline',
|
535 |
-
line = {'smoothing': .7, 'color' :'rgba(33, 212, 225, 1)'}, name = 'Buy & Hold
|
536 |
)
|
537 |
|
538 |
fig.add_layout_image(
|
|
|
528 |
fig.add_trace(
|
529 |
go.Scatter(x=dfdata['Exit Date'], y=np.round(dfdata['Cumulative P/L'].values,2), line_shape='spline',
|
530 |
line = {'smoothing': .7, 'color' : 'rgba(90, 223, 137, 1)'},
|
531 |
+
name='P/L')
|
532 |
)
|
533 |
buyhold = (principal_balance/dfdata['Buy Price'][dfdata.index[0]])*(dfdata['Buy Price']-dfdata['Buy Price'][dfdata.index[0]])
|
534 |
fig.add_trace(go.Scatter(x=dfdata['Exit Date'], y=np.round(buyhold.values,2), line_shape='spline',
|
535 |
+
line = {'smoothing': .7, 'color' :'rgba(33, 212, 225, 1)'}, name = 'Buy & Hold')
|
536 |
)
|
537 |
|
538 |
fig.add_layout_image(
|