Synced repo using 'sync_with_huggingface' Github Action
Browse files- page/complete_backtest.py +2 -4
- requirements.txt +0 -1
page/complete_backtest.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
-
import sys
|
2 |
-
# sys.path.append(r"D:\code\algotrading\backtesting")
|
3 |
-
|
4 |
import streamlit as st
|
5 |
import pandas as pd
|
6 |
import time
|
7 |
from streamlit.components import v1 as components
|
8 |
from utils import complete_test
|
|
|
9 |
|
10 |
def complete_backtest():
|
11 |
st.markdown(
|
@@ -51,7 +49,7 @@ def complete_backtest():
|
|
51 |
else:
|
52 |
ema1, ema2, cross_close = None, None, None
|
53 |
|
54 |
-
multiprocess = st.checkbox("Multiprocess", value=True)
|
55 |
|
56 |
# Button to run the analysis
|
57 |
if st.button("Run"):
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import time
|
4 |
from streamlit.components import v1 as components
|
5 |
from utils import complete_test
|
6 |
+
from os import cpu_count
|
7 |
|
8 |
def complete_backtest():
|
9 |
st.markdown(
|
|
|
49 |
else:
|
50 |
ema1, ema2, cross_close = None, None, None
|
51 |
|
52 |
+
multiprocess = st.checkbox(f"Multiprocess (use {cpu_count()} CPUs)", value=True)
|
53 |
|
54 |
# Button to run the analysis
|
55 |
if st.button("Run"):
|
requirements.txt
CHANGED
@@ -4,5 +4,4 @@ pandas==2.2.3
|
|
4 |
bokeh==3.1.0
|
5 |
yfinance==0.2.50
|
6 |
plotly==5.24.1
|
7 |
-
gradio==5.11.0
|
8 |
streamlit==1.41.1
|
|
|
4 |
bokeh==3.1.0
|
5 |
yfinance==0.2.50
|
6 |
plotly==5.24.1
|
|
|
7 |
streamlit==1.41.1
|