Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,27 +14,32 @@ st.set_page_config(page_title="Identifying Key Support and Resistance In Price L
|
|
| 14 |
st.title('Key Support and Resistance In Price Levels')
|
| 15 |
|
| 16 |
st.markdown("""
|
| 17 |
-
This tool aims to identify key support and resistance price levels in stocks using various algorithmic methods. Each method is detailed below
|
| 18 |
-
1. **Pivot Points**: Short-term trend indicators used to determine potential support and resistance levels based on the high, low, and close prices of previous trading sessions.
|
| 19 |
-
2. **Support and Resistance Levels using Rolling Midpoint Range**: Key price points where the stock's price tends to halt its upward or downward trajectory, identified using a rolling window to calculate dynamic support and resistance levels.
|
| 20 |
-
3. **Swing Highs and Lows**: Local maxima and minima used to identify trends and potential reversal points by pinpointing key inflection points on a stock's chart.
|
| 21 |
-
4. **Fibonacci Retracement Levels**: Horizontal lines indicating potential support and resistance levels based on Fibonacci numbers, helping to identify prospective market reversal points.
|
| 22 |
-
5. **Trendlines**: Straight lines drawn to connect two or more price points, helping identify the market trend direction and potential areas of support and resistance.
|
| 23 |
-
6. **Volume Profile**: A charting tool that shows the amount of volume traded at different price levels over a specified period, helping identify areas of high trading activity which can act as support or resistance.
|
| 24 |
-
7. **KMeans Clustering**: A machine learning algorithm used to partition the dataset into clusters, identifying patterns and grouping similar price movements together to highlight significant price levels.
|
| 25 |
""")
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
# Sidebar: How to use and Input Parameters
|
| 28 |
st.sidebar.title('Input Parameters')
|
| 29 |
|
| 30 |
-
st.sidebar.subheader('How to use:')
|
| 31 |
|
| 32 |
-
st.sidebar.
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
| 38 |
|
| 39 |
# Expander for ticker and date settings
|
| 40 |
with st.sidebar.expander("Ticker and Date Settings", expanded=True):
|
|
|
|
| 14 |
st.title('Key Support and Resistance In Price Levels')
|
| 15 |
|
| 16 |
st.markdown("""
|
| 17 |
+
This tool aims to identify key support and resistance price levels in stocks using various algorithmic methods. Each method is detailed below.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
""")
|
| 19 |
|
| 20 |
+
with st.expander("Click here to read the description of each method:", expanded=False):
|
| 21 |
+
st.markdown("""
|
| 22 |
+
1. **Pivot Points**: Short-term trend indicators used to determine potential support and resistance levels based on the high, low, and close prices of previous trading sessions.
|
| 23 |
+
2. **Support and Resistance Levels using Rolling Midpoint Range**: Key price points where the stock's price tends to halt its upward or downward trajectory, identified using a rolling window to calculate dynamic support and resistance levels.
|
| 24 |
+
3. **Swing Highs and Lows**: Local maxima and minima used to identify trends and potential reversal points by pinpointing key inflection points on a stock's chart.
|
| 25 |
+
4. **Fibonacci Retracement Levels**: Horizontal lines indicating potential support and resistance levels based on Fibonacci numbers, helping to identify prospective market reversal points.
|
| 26 |
+
5. **Trendlines**: Straight lines drawn to connect two or more price points, helping identify the market trend direction and potential areas of support and resistance.
|
| 27 |
+
6. **Volume Profile**: A charting tool that shows the amount of volume traded at different price levels over a specified period, helping identify areas of high trading activity which can act as support or resistance.
|
| 28 |
+
7. **KMeans Clustering**: A machine learning algorithm used to partition the dataset into clusters, identifying patterns and grouping similar price movements together to highlight significant price levels.
|
| 29 |
+
""")
|
| 30 |
+
|
| 31 |
# Sidebar: How to use and Input Parameters
|
| 32 |
st.sidebar.title('Input Parameters')
|
| 33 |
|
| 34 |
+
#st.sidebar.subheader('How to use:')
|
| 35 |
|
| 36 |
+
with st.sidebar.expander("How to use:", expanded=False):
|
| 37 |
+
st.markdown("""
|
| 38 |
+
1. **Enter Ticker**: Specify a stock ticker or crypto pair.
|
| 39 |
+
2. **Set Dates**: Choose the date range for analysis.
|
| 40 |
+
3. **Adjust Parameters**: Modify methodology parameters as needed.
|
| 41 |
+
4. **Run Analysis**: Click 'Run' to generate results.
|
| 42 |
+
""")
|
| 43 |
|
| 44 |
# Expander for ticker and date settings
|
| 45 |
with st.sidebar.expander("Ticker and Date Settings", expanded=True):
|