QuantumLearner commited on
Commit
2425eef
·
verified ·
1 Parent(s): d9520b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -103,14 +103,14 @@ def extract_and_reduce_features(data, n_components=3):
103
 
104
  # Streamlit app
105
  st.set_page_config(page_title="Pattern Recognition", layout="wide")
106
- st.title('Pattern Recognition in Stock Prices')
107
 
108
  # Sidebar for method selection
109
  st.sidebar.title("Input Parameters")
110
  st.sidebar.subheader("How to Use")
111
  st.sidebar.markdown("""
112
  1. Select the pattern recognition method you want to use.
113
- 2. Set the stock ticker, date range, and other parameters.
114
  3. Click 'Run' to perform the analysis.
115
  """)
116
 
@@ -121,7 +121,7 @@ with st.sidebar.expander("Pattern Recognition Methods", expanded=True):
121
  help="Select the pattern recognition method you want to use.")
122
 
123
  with st.sidebar.expander("Input Parameters", expanded=True):
124
- ticker = st.text_input('Enter Stock Ticker', 'ASML.AS', help="Input the stock ticker (e.g., AAPL, TSLA).")
125
  start_date = st.date_input('Start Date', pd.to_datetime('2000-01-01'), help="Select the start date for the analysis.")
126
  end_date = st.date_input('End Date', datetime.now() + timedelta(days=1), help="Select the end date for the analysis.")
127
  subsequent_days = st.slider('Subsequent Days to Forecast', min_value=5, max_value=60, value=20, step=5, help="Number of days to forecast after identifying similar patterns.")
 
103
 
104
  # Streamlit app
105
  st.set_page_config(page_title="Pattern Recognition", layout="wide")
106
+ st.title('Pattern Recognition in Asset Prices')
107
 
108
  # Sidebar for method selection
109
  st.sidebar.title("Input Parameters")
110
  st.sidebar.subheader("How to Use")
111
  st.sidebar.markdown("""
112
  1. Select the pattern recognition method you want to use.
113
+ 2. Set the stock ticker or crypto pair, date range, and other parameters.
114
  3. Click 'Run' to perform the analysis.
115
  """)
116
 
 
121
  help="Select the pattern recognition method you want to use.")
122
 
123
  with st.sidebar.expander("Input Parameters", expanded=True):
124
+ ticker = st.text_input('Enter Stock Ticker or Crypto Pair', 'ASML.AS', help="Input the stock ticker (e.g., AAPL, TSLA) or Crypto Pair(e.g., BTC-USD).")
125
  start_date = st.date_input('Start Date', pd.to_datetime('2000-01-01'), help="Select the start date for the analysis.")
126
  end_date = st.date_input('End Date', datetime.now() + timedelta(days=1), help="Select the end date for the analysis.")
127
  subsequent_days = st.slider('Subsequent Days to Forecast', min_value=5, max_value=60, value=20, step=5, help="Number of days to forecast after identifying similar patterns.")