Spaces:
Sleeping
Sleeping
alexaxbreadbytes
commited on
Commit
•
c831e69
1
Parent(s):
b32f09d
container width removed
Browse files
app.py
CHANGED
@@ -564,7 +564,7 @@ def runapp() -> None:
|
|
564 |
plot_bgcolor = 'rgba(10, 10, 10, 1)'
|
565 |
)
|
566 |
|
567 |
-
st.plotly_chart(fig, theme=None, use_container_width=True
|
568 |
st.write()
|
569 |
df['Per Trade Return Rate'] = df['Return Per Trade']-1
|
570 |
|
@@ -690,8 +690,8 @@ def runapp() -> None:
|
|
690 |
.apply(coding, axis=1)\
|
691 |
.applymap(my_style,subset=['Net P/L'])\
|
692 |
.applymap(my_style,subset=['P/L %']), use_container_width=True)
|
693 |
-
new_title = '<div style="text-align: right;"><span style="background-color:lightgrey;"> </span> Not Live Traded</div>'
|
694 |
-
st.markdown(new_title, unsafe_allow_html=True)
|
695 |
else:
|
696 |
st.dataframe(grouped_df.style.format({'Entry Date':'{:%m-%d-%Y %H:%M:%S}','Exit Date':'{:%m-%d-%Y %H:%M:%S}','Avg. Buy Price': '${:.2f}', 'Sell Price': '${:.2f}', 'Net P/L':'${:.2f}', 'P/L %':'{:.2f}%'})\
|
697 |
.applymap(my_style,subset=['Net P/L'])\
|
@@ -704,7 +704,6 @@ def runapp() -> None:
|
|
704 |
if __name__ == "__main__":
|
705 |
st.set_page_config(
|
706 |
"Trading Bot Dashboard",
|
707 |
-
layout="wide",
|
708 |
)
|
709 |
runapp()
|
710 |
# -
|
|
|
564 |
plot_bgcolor = 'rgba(10, 10, 10, 1)'
|
565 |
)
|
566 |
|
567 |
+
st.plotly_chart(fig, theme=None, use_container_width=True)
|
568 |
st.write()
|
569 |
df['Per Trade Return Rate'] = df['Return Per Trade']-1
|
570 |
|
|
|
690 |
.apply(coding, axis=1)\
|
691 |
.applymap(my_style,subset=['Net P/L'])\
|
692 |
.applymap(my_style,subset=['P/L %']), use_container_width=True)
|
693 |
+
# new_title = '<div style="text-align: right;"><span style="background-color:lightgrey;"> </span> Not Live Traded</div>'
|
694 |
+
# st.markdown(new_title, unsafe_allow_html=True)
|
695 |
else:
|
696 |
st.dataframe(grouped_df.style.format({'Entry Date':'{:%m-%d-%Y %H:%M:%S}','Exit Date':'{:%m-%d-%Y %H:%M:%S}','Avg. Buy Price': '${:.2f}', 'Sell Price': '${:.2f}', 'Net P/L':'${:.2f}', 'P/L %':'{:.2f}%'})\
|
697 |
.applymap(my_style,subset=['Net P/L'])\
|
|
|
704 |
if __name__ == "__main__":
|
705 |
st.set_page_config(
|
706 |
"Trading Bot Dashboard",
|
|
|
707 |
)
|
708 |
runapp()
|
709 |
# -
|