|
import streamlit as st |
|
from os import cpu_count |
|
|
|
def app(): |
|
st.set_page_config(page_title="Algorithmic Trading Dashboard", layout="wide", initial_sidebar_state="auto", |
|
menu_items=None, page_icon=":chart_with_upwards_trend:") |
|
|
|
print(f"This device has {cpu_count()} CPUs") |
|
|
|
single_test = st.Page("page/single_backtest.py", title="Run Strategy") |
|
complete_test = st.Page("page/complete_backtest.py", title="Evaluate Strategy") |
|
|
|
pg = st.navigation({'Algorithmic Trading Dashboard':[single_test, complete_test]}) |
|
|
|
pg.run() |
|
|
|
if __name__ == "__main__": |
|
app() |