Synced repo using 'sync_with_huggingface' Github Action
Browse files- app.py +0 -3
- page/complete_backtest.py +3 -1
app.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
-
from os import cpu_count
|
3 |
|
4 |
def app():
|
5 |
st.set_page_config(page_title="Algorithmic Trading Dashboard", layout="wide", initial_sidebar_state="auto",
|
6 |
menu_items=None, page_icon=":chart_with_upwards_trend:")
|
7 |
|
8 |
-
print(f"This device has {cpu_count()} CPUs")
|
9 |
-
|
10 |
single_test = st.Page("page/single_backtest.py", title="Run Strategy")
|
11 |
complete_test = st.Page("page/complete_backtest.py", title="Evaluate Strategy")
|
12 |
|
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
def app():
|
4 |
st.set_page_config(page_title="Algorithmic Trading Dashboard", layout="wide", initial_sidebar_state="auto",
|
5 |
menu_items=None, page_icon=":chart_with_upwards_trend:")
|
6 |
|
|
|
|
|
7 |
single_test = st.Page("page/single_backtest.py", title="Run Strategy")
|
8 |
complete_test = st.Page("page/complete_backtest.py", title="Evaluate Strategy")
|
9 |
|
page/complete_backtest.py
CHANGED
@@ -68,7 +68,9 @@ def complete_backtest():
|
|
68 |
help="Commission is the commission ratio. E.g. if your broker's "
|
69 |
"commission is 1% of trade value, set commission to 1.")
|
70 |
with c3:
|
71 |
-
multiprocess = st.checkbox(
|
|
|
|
|
72 |
|
73 |
# Button to run the analysis
|
74 |
if st.button("Run"):
|
|
|
68 |
help="Commission is the commission ratio. E.g. if your broker's "
|
69 |
"commission is 1% of trade value, set commission to 1.")
|
70 |
with c3:
|
71 |
+
multiprocess = st.checkbox("Multiprocess", value=True,
|
72 |
+
help="Use multiple CPUs (if available) to parallelize the run. "
|
73 |
+
"Run time is inversely proportional to no of CPUs available.")
|
74 |
|
75 |
# Button to run the analysis
|
76 |
if st.button("Run"):
|