Spaces:
Sleeping
Sleeping
anaucoin commited on
Commit ·
a6d9944
1
Parent(s): dc01c89
spline change
Browse files
app.py
CHANGED
|
@@ -527,12 +527,12 @@ def runapp() -> None:
|
|
| 527 |
# Add trace
|
| 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':
|
| 531 |
name='Cumulative 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':
|
| 536 |
)
|
| 537 |
|
| 538 |
fig.add_layout_image(
|
|
|
|
| 527 |
# Add trace
|
| 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='Cumulative 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 Return')
|
| 536 |
)
|
| 537 |
|
| 538 |
fig.add_layout_image(
|